Skip to content

Commit

Permalink
Move user-code effect to the Resume line in GeneratorResumeAbrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Dec 11, 2021
1 parent 750b352 commit 30516d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -44585,8 +44585,8 @@ <h1>
1. Let _methodContext_ be the running execution context.
1. Suspend _methodContext_.
1. Set _generator_.[[GeneratorState]] to ~executing~.
1. <emu-meta effects="user-code">Push _genContext_ onto the execution context stack</emu-meta>; _genContext_ is now the running execution context.
1. Resume the suspended evaluation of _genContext_ using _abruptCompletion_ as the result of the operation that suspended it. Let _result_ be the completion record returned by the resumed computation.
1. Push _genContext_ onto the execution context stack; _genContext_ is now the running execution context.
1. <emu-meta effects="user-code">Resume the suspended evaluation of _genContext_</emu-meta> using _abruptCompletion_ as the result of the operation that suspended it. Let _result_ be the completion record returned by the resumed computation.
1. Assert: When we return here, _genContext_ has already been removed from the execution context stack and _methodContext_ is the currently running execution context.
1. Return Completion(_result_).
</emu-alg>
Expand Down

0 comments on commit 30516d4

Please sign in to comment.