fix(parser): set the correct context for class property initializer#10859
Conversation
There was a problem hiding this comment.
Pull Request Overview
This pull request fixes the context handling for class property initializers in the parser and adds a corresponding test case for TypeScript syntax.
- Update the parser to use the correct context when parsing class property initializers
- Add an integration test case for the updated class property syntax in TypeScript
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| crates/oxc_parser/src/js/class.rs | Adjusts the initializer parsing to set proper context flags (In, Yield, Await) |
| crates/oxc_codegen/tests/integration/ts.rs | Adds a new test case to validate the class property syntax with await |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Merge activity
|
51d2413 to
087af52
Compare
CodSpeed Instrumentation Performance ReportMerging #10859 will not alter performanceComparing Summary
|

fixes #10840