Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 25 additions & 12 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -11994,6 +11994,28 @@ <h1>
1. Return Completion(_result_).
</emu-alg>
</emu-clause>

<emu-clause id="sec-runcallercontext" type="abstract operation">
<h1>
RunCallerContext (
_value_: an ECMAScript language value or ~empty~,
): a Completion Record
</h1>
<dl class="header">
<dt>description</dt>
<dd>It resumes the caller context (sending it _value_ as the resumption value), and waits for the result, if any.</dd>
</dl>
<emu-alg>
1. Let _genContext_ be the running execution context.
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. Let _callerContext_ be the running execution context.
1. Resume _callerContext_, passing NormalCompletion(_value_).

Check warning on line 12012 in spec.html

View workflow job for this annotation

GitHub Actions / esmeta yet phrases detection

Newly Introduced Unknown Step

This step in RunCallerContext cannot be understood by ESMeta. Type check for this algorithm will not be performed after this line.
1. NOTE: The above step transfers control to _callerContext_ and pauses. The only way for it to un-pause and have control proceed to the subsequent steps in this algorithm is for _genContext_ to be resumed again, which might never happen.
1. Assert: _genContext_ is the running execution context.
1. Let _result_ be the Completion Record with which _genContext_ was just resumed.

Check warning on line 12015 in spec.html

View workflow job for this annotation

GitHub Actions / esmeta yet phrases detection

Newly Introduced Unknown Step

This step in RunCallerContext cannot be understood by ESMeta. Type check for this algorithm will not be performed after this line.
1. Return Completion(_result_).
</emu-alg>
</emu-clause>
</emu-clause>

<emu-clause id="sec-jobs" oldids="sec-jobs-and-job-queues,sec-enqueuejob,sec-runjobs,job-queue">
Expand Down Expand Up @@ -50684,10 +50706,7 @@ <h1>
1. Let _generator_ be the value of the Generator component of _genContext_.
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. 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.
1. Let _resumptionValue_ be Completion(RunCallerContext(_iteratorResult_)).
1. Return _resumptionValue_.
</emu-alg>
</emu-clause>
Expand Down Expand Up @@ -51067,10 +51086,7 @@ <h1>
1. Let _resumptionValue_ be Completion(_toYield_.[[Completion]]).
1. Return ? AsyncGeneratorUnwrapYieldResumption(_resumptionValue_).
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. 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.
1. Let _resumptionValue_ be Completion(RunCallerContext(*undefined*)).
1. Return ? AsyncGeneratorUnwrapYieldResumption(_resumptionValue_).
</emu-alg>
</emu-clause>
Expand Down Expand Up @@ -51318,10 +51334,7 @@ <h1>
1. Return NormalCompletion(*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. 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.
1. Let _completion_ be Completion(RunCallerContext(~empty~)).
1. Return _completion_.
</emu-alg>
</emu-clause>
Expand Down
Loading