[Parser]: First token after a class is considered strict mode #11183
Labels
Has PR
i: bug
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
pkg: parser
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 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)
Babel Parser version: 7.8.4
The text was updated successfully, but these errors were encountered: