Skip to content

Commit

Permalink
Mark generator bodies as can-call-user-code
Browse files Browse the repository at this point in the history
  • Loading branch information
syg committed Dec 8, 2021
1 parent 2a2f5ab commit bac10dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -44583,10 +44583,10 @@ <h1>
1. Set the Generator component of _genContext_ to _generator_.
1. Set the code evaluation state of _genContext_ such that when evaluation is resumed for that execution context the following steps will be performed:
1. If _generatorBody_ is a Parse Node, then
1. Let _result_ be the result of evaluating _generatorBody_.
1. Let _result_ be the result of evaluating <emu-meta effects="user-code">_generatorBody_</emu-meta>.
1. Else,
1. Assert: _generatorBody_ is an Abstract Closure with no parameters.
1. Let _result_ be _generatorBody_().
1. Let _result_ be <emu-meta effects="user-code">_generatorBody_()</emu-meta>.
1. Assert: If we return here, the generator either threw an exception or performed either an implicit or explicit return.
1. Remove _genContext_ from the execution context stack and restore the execution context that is at the top of the execution context stack as the running execution context.
1. Set _generator_.[[GeneratorState]] to ~completed~.
Expand Down Expand Up @@ -44931,10 +44931,10 @@ <h1>
1. Set the Generator component of _genContext_ to _generator_.
1. Set the code evaluation state of _genContext_ such that when evaluation is resumed for that execution context the following steps will be performed:
1. If _generatorBody_ is a Parse Node, then
1. Let _result_ be the result of evaluating _generatorBody_.
1. Let _result_ be the result of evaluating <emu-meta effects="user-code">_generatorBody_</emu-meta>.
1. Else,
1. Assert: _generatorBody_ is an Abstract Closure with no parameters.
1. Let _result_ be _generatorBody_().
1. Let _result_ be <emu-meta effects="user-code">_generatorBody_()</emu-meta>.
1. Assert: If we return here, the async generator either threw an exception or performed either an implicit or explicit return.
1. Remove _genContext_ from the execution context stack and restore the execution context that is at the top of the execution context stack as the running execution context.
1. Set _generator_.[[AsyncGeneratorState]] to ~completed~.
Expand Down

0 comments on commit bac10dd

Please sign in to comment.