tc39 / proposal-explicit-resource-management

ECMAScript Explicit Resource Management
https://arai-a.github.io/ecma262-compare/?pr=3000
BSD 3-Clause "New" or "Revised" License
725 stars 29 forks source link

Revert changes to ForBodyEvaluation/CreatePerIterationEnvironment #140

Closed rbuckton closed 1 year ago

rbuckton commented 1 year ago

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[bot] commented 1 year ago

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

rbuckton commented 1 year ago

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