Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert changes to ForBodyEvaluation/CreatePerIterationEnvironment #140

Merged
merged 1 commit into from Feb 2, 2023

Conversation

rbuckton
Copy link
Collaborator

CreatePerIterationEnvironment only ever creates normal bindings, so there is nothing to actually dispose in ForBodyEvaluation. The only place we actually need to handle specifically in a for statement is in ForLoopEvaluation, since any using declaration in the ForDeclaration nonterminal would be defined in the non-per-iteration environment (loopEnv).

@github-actions
Copy link

A preview of this PR can be found at https://tc39.es/proposal-explicit-resource-management/pr/140.

@rbuckton rbuckton changed the title Remove ForBodyEvaluation/CreatePerIterationEnvironment Remove changes to ForBodyEvaluation/CreatePerIterationEnvironment Jan 31, 2023
@rbuckton rbuckton changed the title Remove changes to ForBodyEvaluation/CreatePerIterationEnvironment Revert changes to ForBodyEvaluation/CreatePerIterationEnvironment Jan 31, 2023
@rbuckton
Copy link
Collaborator Author

@tc39/ecma262-editors can you review this change?

@rbuckton rbuckton merged commit 7eeb420 into main Feb 2, 2023
@rbuckton rbuckton deleted the cleanup-for-evaluation branch February 2, 2023 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants