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
The correct output of the test case should be 7 3 while hermes outputs 7 7. I think hermes fails to deal with the scope of the global and local variable x, where hermes may treat the local variable x at line 4 as the global variable, leading to output 7 at line 7.
The text was updated successfully, but these errors were encountered:
Hi @YiWen-y, Hermes does not support block scoping, and we instead rely on Babel transforms to lower cases like these into something that can run in Hermes. Please see #575 for more details.
Version
0.10.0
Test case
Execution steps
Output
Expected behavior
Description
The correct output of the test case should be
7 3
while hermes outputs7 7
. I think hermes fails to deal with the scope of the global and local variablex
, where hermes may treat the local variablex
at line 4 as the global variable, leading to output7
at line 7.The text was updated successfully, but these errors were encountered: