Files
oxc-project__oxc/tasks/coverage/snapshots/formatter_misc.snap
T
camc314 2dcee2f216 fix(parser): reject async modifiers on class fields (#26486)
`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.
2026-09-09 13:04:01 +00:00

4 lines
90 B
Plaintext

formatter_misc Summary:
AST Parsed : 93/93 (100.00%)
Positive Passed: 93/93 (100.00%)