@@ -2997,7 +2997,7 @@ <h1>Await</h1>
2997
2997
2998
2998
<emu-alg>
2999
2999
1. Let _asyncContext_ be the running execution context.
3000
- 1. Let _promise_ be ? PromiseResolve(« _value_ »).
3000
+ 1. Let _promise_ be ? PromiseResolve(%Promise%, « _value_ »).
3001
3001
1. Let _stepsFulfilled_ be the algorithm steps defined in <emu-xref href="#await-fulfilled" title></emu-xref>.
3002
3002
1. Let _onFulfilled_ be CreateBuiltinFunction(_stepsFulfilled_, « [[AsyncContext]] »).
3003
3003
1. Set _onFulfilled_.[[AsyncContext]] to _asyncContext_.
@@ -36595,7 +36595,7 @@ <h1>AsyncFromSyncIteratorContinuation ( _result_, _promiseCapability_ )</h1>
36595
36595
1. IfAbruptRejectPromise(_done_, _promiseCapability_).
36596
36596
1. Let _value_ be IteratorValue(_result_).
36597
36597
1. IfAbruptRejectPromise(_value_, _promiseCapability_).
36598
- 1. Let _valueWrapper_ be ? PromiseResolve(« _value_ »).
36598
+ 1. Let _valueWrapper_ be ? PromiseResolve(%Promise%, « _value_ »).
36599
36599
1. Let _steps_ be the algorithm steps defined in <emu-xref href="#sec-async-from-sync-iterator-value-unwrap-functions" title></emu-xref>.
36600
36600
1. Let _onFulfilled_ be CreateBuiltinFunction(_steps_, « [[Done]] »).
36601
36601
1. Set _onFulfilled_.[[Done]] to _done_.
@@ -37220,7 +37220,7 @@ <h1>AsyncGeneratorResumeNext ( _generator_ )</h1>
37220
37220
1. If _state_ is `"completed"`, then
37221
37221
1. If _completion_.[[Type]] is ~return~, then
37222
37222
1. Set _generator_.[[AsyncGeneratorState]] to `"awaiting-return"`.
37223
- 1. Let _promise_ be ? PromiseResolve(« _completion_.[[Value]] »).
37223
+ 1. Let _promise_ be ? PromiseResolve(%Promise%, « _completion_.[[Value]] »).
37224
37224
1. Let _stepsFulfilled_ be the algorithm steps defined in <emu-xref href="#async-generator-resume-next-return-processor-fulfilled" title></emu-xref>.
37225
37225
1. Let _onFulfilled_ be CreateBuiltinFunction(_stepsFulfilled_, « [[Generator]] »).
37226
37226
1. Set _onFulfilled_.[[Generator]] to _generator_.
0 commit comments