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

DisposeResources should be called before Execution Context removed from stack #176

Closed rbuckton closed 3 months ago

rbuckton commented 1 year ago

In GeneratorStart, AsyncGeneratorStart, and AsyncBlockStart, the call to the DisposeResources AO should happen before the step that removes the execution context from the execution context stack.

rbuckton commented 1 year ago

Alternatively, the DisposeResources call for all three should be moved to Evaluation of FunctionBody