tc39 / proposal-explicit-resource-management

ECMAScript Explicit Resource Management

Home Page:https://arai-a.github.io/ecma262-compare/?pr=3000

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DisposeResources should be called before Execution Context removed from stack

rbuckton opened this issue · comments

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.

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