mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
2dcee2f216
`class C { async x; }` was accepted in JavaScript and TypeScript, silently discarding `async` from the resulting field. Reject the modifier after parsing a class field, once fields have been distinguished from methods.
Async methods, fields named `async`, and newline-separated fields remain valid.
4 lines
90 B
Plaintext
4 lines
90 B
Plaintext
formatter_misc Summary:
|
|
AST Parsed : 93/93 (100.00%)
|
|
Positive Passed: 93/93 (100.00%)
|