Skip to content

Commit

Permalink
Editorial: Add missing parameter to PromiseResolve calls
Browse files Browse the repository at this point in the history
  • Loading branch information
MayaLekova committed Jun 29, 2018
1 parent 320b6c2 commit 33b6432
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec.html
Expand Up @@ -3052,7 +3052,7 @@ <h1>Await</h1>

<emu-alg>
1. Let _asyncContext_ be the running execution context.
1. Let _promise_ be ? PromiseResolve(&laquo; _value_ &raquo;).
1. Let _promise_ be ? PromiseResolve(%Promise%, &laquo; _value_ &raquo;).
1. Let _stepsFulfilled_ be the algorithm steps defined in <emu-xref href="#await-fulfilled" title></emu-xref>.
1. Let _onFulfilled_ be CreateBuiltinFunction(_stepsFulfilled_, &laquo; [[AsyncContext]] &raquo;).
1. Set _onFulfilled_.[[AsyncContext]] to _asyncContext_.
Expand Down Expand Up @@ -37907,7 +37907,7 @@ <h1>%AsyncFromSyncIteratorPrototype%.next ( _value_ )</h1>
1. IfAbruptRejectPromise(_nextDone_, _promiseCapability_).
1. Let _nextValue_ be IteratorValue(_nextResult_).
1. IfAbruptRejectPromise(_nextValue_, _promiseCapability_).
1. Let _valueWrapper_ be ? PromiseResolve(&laquo; _nextValue_ &raquo;).
1. Let _valueWrapper_ be ? PromiseResolve(%Promise%, &laquo; _nextValue_ &raquo;).
1. Let _steps_ be the algorithm steps defined in <emu-xref href="#sec-async-from-sync-iterator-value-unwrap-functions" title></emu-xref>.
1. Let _onFulfilled_ be CreateBuiltinFunction(_steps_, &laquo; [[Done]] &raquo;).
1. Set _onFulfilled_.[[Done]] to _nextDone_.
Expand Down Expand Up @@ -37942,7 +37942,7 @@ <h1>%AsyncFromSyncIteratorPrototype%.return ( _value_ )</h1>
1. IfAbruptRejectPromise(_returnDone_, _promiseCapability_).
1. Let _returnValue_ be IteratorValue(_returnResult_).
1. IfAbruptRejectPromise(_returnValue_, _promiseCapability_).
1. Let _valueWrapper_ be ? PromiseResolve(&laquo; _returnValue_ &raquo;).
1. Let _valueWrapper_ be ? PromiseResolve(%Promise%, &laquo; _returnValue_ &raquo;).
1. Let _steps_ be the algorithm steps defined in <emu-xref href="#sec-async-from-sync-iterator-value-unwrap-functions" title></emu-xref>.
1. Let _onFulfilled_ be CreateBuiltinFunction(_steps_, &laquo; [[Done]] &raquo;).
1. Set _onFulfilled_.[[Done]] to _returnDone_.
Expand Down Expand Up @@ -37976,7 +37976,7 @@ <h1>%AsyncFromSyncIteratorPrototype%.throw ( _value_ )</h1>
1. IfAbruptRejectPromise(_throwDone_, _promiseCapability_).
1. Let _throwValue_ be IteratorValue(_throwResult_).
1. IfAbruptRejectPromise(_throwValue_, _promiseCapability_).
1. Let _valueWrapper_ be ? PromiseResolve(&laquo; _throwValue_ &raquo;).
1. Let _valueWrapper_ be ? PromiseResolve(%Promise%, &laquo; _throwValue_ &raquo;).
1. Let _steps_ be the algorithm steps defined in <emu-xref href="#sec-async-from-sync-iterator-value-unwrap-functions" title></emu-xref>.
1. Let _onFulfilled_ be CreateBuiltinFunction(_steps_, &laquo; [[Done]] &raquo;).
1. Set _onFulfilled_.[[Done]] to _throwDone_.
Expand Down Expand Up @@ -38683,7 +38683,7 @@ <h1>AsyncGeneratorResumeNext ( _generator_ )</h1>
1. If _state_ is `"completed"`, then
1. If _completion_.[[Type]] is ~return~, then
1. Set _generator_.[[AsyncGeneratorState]] to `"awaiting-return"`.
1. Let _promise_ be ? PromiseResolve(&laquo; _completion_.[[Value]] &raquo;).
1. Let _promise_ be ? PromiseResolve(%Promise%, &laquo; _completion_.[[Value]] &raquo;).
1. Let _stepsFulfilled_ be the algorithm steps defined in <emu-xref href="#async-generator-resume-next-return-processor-fulfilled" title></emu-xref>.
1. Let _onFulfilled_ be CreateBuiltinFunction(_stepsFulfilled_, &laquo; [[Generator]] &raquo;).
1. Set _onFulfilled_.[[Generator]] to _generator_.
Expand Down

1 comment on commit 33b6432

@benjamn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

Please sign in to comment.