mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
cfa47ab396
Class static blocks inherit the disabled `in` context of a surrounding `for` initializer, causing valid code such as `for (class { static { a in b; } };;);` to report a missing semicolon at `in`. Enable `Context::In` while parsing the static block, with the existing context helper restoring the surrounding flags afterward.
4 lines
90 B
Plaintext
4 lines
90 B
Plaintext
formatter_misc Summary:
|
|
AST Parsed : 91/91 (100.00%)
|
|
Positive Passed: 91/91 (100.00%)
|