Skip to content

Commit

Permalink
fixup: "execution context" -> "ExecutionContext Record" in some alg s…
Browse files Browse the repository at this point in the history
…teps
  • Loading branch information
jmdyck committed Oct 25, 2024
1 parent 6ab36c9 commit 9503d4c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -12001,8 +12001,8 @@ <h1>GetActiveScriptOrModule ( ): a Script Record, a Module Record, or *null*</h1

<emu-alg>
1. If the execution context stack is empty, return *null*.
1. Let _ec_ be the topmost execution context on the execution context stack whose [[ScriptOrModule]] field is not *null*.
1. If no such execution context exists, return *null*. Otherwise, return _ec_.[[ScriptOrModule]].
1. Let _ec_ be the topmost ExecutionContext Record on the execution context stack whose [[ScriptOrModule]] field is not *null*.
1. If no such ExecutionContext Record exists, return *null*. Otherwise, return _ec_.[[ScriptOrModule]].
</emu-alg>
</emu-clause>

Expand Down Expand Up @@ -48740,7 +48740,7 @@ <h1>
1. Assert: _generatorBody_ is an Abstract Closure with no parameters.
1. Let _result_ be _generatorBody_().
1. Assert: If we return here, the generator either threw an exception or performed either an implicit or explicit return.
1. Remove _acGenContext_ 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. Remove _acGenContext_ from the execution context stack and restore the ExecutionContext Record that is at the top of the execution context stack as the running execution context.
1. Set _acGenerator_.[[GeneratorState]] to ~completed~.
1. NOTE: Once a generator enters the ~completed~ state it never leaves it and its associated execution context is never resumed. Any execution state associated with _acGenerator_ can be discarded at this point.
1. If _result_ is a normal completion, then
Expand Down Expand Up @@ -48861,7 +48861,7 @@ <h1>
1. Let _generator_ be _genContext_.[[Generator]].
1. Assert: GetGeneratorKind() is ~sync~.
1. Set _generator_.[[GeneratorState]] to ~suspended-yield~.
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. Remove _genContext_ from the execution context stack and restore the ExecutionContext Record that is at the top of the execution context stack as the running execution context.
1. Let _callerContext_ be the running execution context.
1. Resume _callerContext_ passing NormalCompletion(_iteratorResult_). If _genContext_ is ever resumed again, let _resumptionValue_ be the Completion Record with which it is resumed.
1. Assert: If control reaches here, then _genContext_ is the running execution context again.
Expand Down Expand Up @@ -49102,7 +49102,7 @@ <h1>
1. Assert: _generatorBody_ is an Abstract Closure with no parameters.
1. Let _result_ be Completion(_generatorBody_()).
1. Assert: If we return here, the async generator either threw an exception or performed either an implicit or explicit return.
1. Remove _acGenContext_ 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. Remove _acGenContext_ from the execution context stack and restore the ExecutionContext Record that is at the top of the execution context stack as the running execution context.
1. Set _acGenerator_.[[AsyncGeneratorState]] to ~draining-queue~.
1. If _result_ is a normal completion, set _result_ to NormalCompletion(*undefined*).
1. If _result_ is a return completion, set _result_ to NormalCompletion(_result_.[[Value]]).
Expand Down Expand Up @@ -49250,7 +49250,7 @@ <h1>
1. Return ? AsyncGeneratorUnwrapYieldResumption(_resumptionValue_).
1. Else,
1. Set _generator_.[[AsyncGeneratorState]] to ~suspended-yield~.
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. Remove _genContext_ from the execution context stack and restore the ExecutionContext Record that is at the top of the execution context stack as the running execution context.
1. Let _callerContext_ be the running execution context.
1. Resume _callerContext_ passing *undefined*. If _genContext_ is ever resumed again, let _resumptionValue_ be the Completion Record with which it is resumed.
1. Assert: If control reaches here, then _genContext_ is the running execution context again.
Expand Down Expand Up @@ -49495,7 +49495,7 @@ <h1>
1. Let _acAsyncContext_ be the running execution context.
1. Let _result_ be Completion(Evaluation of _asyncBody_).
1. Assert: If we return here, the async function either threw an exception or performed an implicit or explicit return; all awaiting is done.
1. Remove _acAsyncContext_ 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. Remove _acAsyncContext_ from the execution context stack and restore the ExecutionContext Record that is at the top of the execution context stack as the running execution context.
1. If _result_ is a normal completion, then
1. Perform ! Call(_promiseCapability_.[[Resolve]], *undefined*, « *undefined* »).
1. Else if _result_ is a return completion, then
Expand Down Expand Up @@ -49541,7 +49541,7 @@ <h1>
1. Return *undefined*.
1. Let _onRejected_ be CreateBuiltinFunction(_rejectedClosure_, 1, *""*, « »).
1. Perform PerformPromiseThen(_promise_, _onFulfilled_, _onRejected_).
1. Remove _asyncContext_ 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. Remove _asyncContext_ from the execution context stack and restore the ExecutionContext Record that is at the top of the execution context stack as the running execution context.
1. Let _callerContext_ be the running execution context.
1. Resume _callerContext_ passing ~empty~. If _asyncContext_ is ever resumed again, let _completion_ be the Completion Record with which it is resumed.
1. Assert: If control reaches here, then _asyncContext_ is the running execution context again.
Expand Down

0 comments on commit 9503d4c

Please sign in to comment.