mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
12937b3201
## Summary - parse ordinary class field initializers as `AssignmentExpression` - reject unparenthesized comma expressions while preserving parenthesized sequence expressions - add paired misc conformance fixtures and update the generated snapshots ## Root cause Ordinary class field initializers used `parse_expr`, which accepts a top-level comma and constructs a sequence expression. The ECMAScript `Initializer` grammar requires an `AssignmentExpression`, so the unparenthesized comma must remain for the class-element terminator check to reject.
2 lines
22 B
JavaScript
2 lines
22 B
JavaScript
class C { x = (a,b) }
|