Add parser support for explicit resource management (using/await using)#4649
Open
abhinavs1920 wants to merge 1 commit intoboa-dev:mainfrom
Open
Add parser support for explicit resource management (using/await using)#4649abhinavs1920 wants to merge 1 commit intoboa-dev:mainfrom
abhinavs1920 wants to merge 1 commit intoboa-dev:mainfrom
Conversation
…t using) Signed-off-by: Abhinav Sharma <abhinavs1920bpl@gmail.com>
Test262 conformance changes
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Pull Request fixes/closes #4445
This PR introduces the parser foundation for the TC39 Explicit Resource Management proposal. It’s an initial step and does not yet include runtime support, which will be added gradually in future commits. Because this is a large feature, it will be developed over multiple commits.
It focuses on parsing support for using and await using, along with proper validation, AST integration, and test coverage. Runtime behavior is intentionally not included yet, using declarations are currently compiled as regular lexical bindings, with clear TODOs marking the follow-up work.
All existing parser tests continue to pass, and 5 new tests have been added for the new syntax. An example script and a short implementation roadmap are included to make future work straightforward.
This is the first step of a larger feature and is designed to be safe, incremental, and easy to review. Runtime disposal logic and related built-ins will be added in further commits of my work.
Thanks for reviewing!