Incorrect treatment of declarations named NaN
/Infinity
/undefined
#1569
Labels
bug
Something isn't working
NaN
/Infinity
/undefined
#1569
Bug Description
There are details at tc39/test262#4332 , but the summary is that Hermes incorrectly fails to reject top-level
NaN
/Infinity
/undefined
declarations and incorrectly fails to create (or at least respect) them in a deeper scope such as a block context.gradle clean
and confirmed this bug does not occur with JSCHermes release version: 0.11.0
Steps To Reproduce
code example 1:
code example 2:
The Expected Behavior
Example 1 should throw a SyntaxError before anything happens (but instead prints "START" and "FAIL WITHOUT EFFECTS").
Example 2 should print "PASS NaN, PASS Infinity, PASS undefined" (but instead prints "FAIL NaN, FAIL Infinity, FAIL undefined").
The text was updated successfully, but these errors were encountered: