You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hermes uses var semantics for let/const variables, leading to scope leaking in for loops.
I have run gradle clean and confirmed this bug does not occur with JSC
Hermes version: 0.11.0
React Native version (if any): N/A
OS version (if any): macOS
Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64): arm64-v8a
Hi @oblador, Hermes does not support block scoping, and we instead rely on babel transforms to lower code like this into something that Hermes can correctly run. Please see #575 for more details.
Bug Description
Hermes uses
var
semantics forlet/const
variables, leading to scope leaking in for loops.gradle clean
and confirmed this bug does not occur with JSCHermes version: 0.11.0
React Native version (if any): N/A
OS version (if any): macOS
Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64): arm64-v8a
Steps To Reproduce
Hermes output:
['c', 'c', 'c']
🛑The Expected Behavior
JSC output:
['a', 'b', 'c']
✅Node output:
['a', 'b', 'c']
✅The text was updated successfully, but these errors were encountered: