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
I guess when parsing the } closing token of a class, the next token is still parsed as the strict-mode context from that class, rather than using the outer strict mode status.
In script mode, this (a legacy octal) passes in Acorn/Babel (because it applies annexb by default):
05
This fails after a class:
classx{}05
But passes with anything in between:
classx{}y05
(All the above cases should pass in non-strict script mode under annexb rules)
acorn@7.1.0
The text was updated successfully, but these errors were encountered:
This is the same bug as Babel: babel/babel#11183
I guess when parsing the
}
closing token of a class, the next token is still parsed as the strict-mode context from that class, rather than using the outer strict mode status.In script mode, this (a legacy octal) passes in Acorn/Babel (because it applies annexb by default):
05
This fails after a class:
But passes with anything in between:
(All the above cases should pass in non-strict script mode under annexb rules)
acorn@7.1.0
The text was updated successfully, but these errors were encountered: