Skip to content

Commit

Permalink
Revert "do use awaitall"
Browse files Browse the repository at this point in the history
This reverts commit 796d17c.
  • Loading branch information
guybedford committed Sep 10, 2018
1 parent 796d17c commit e4ee72a
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,27 +80,6 @@ <h1><ins>AwaitWithReturn( _promise_ )</ins></h1>
</emu-alg>
</emu-clause>

<emu-clause id="sec-awaitall" aoid="AwaitAll">
<h1><ins>AwaitAll( _promises_ )</ins></h1>
<emu-alg>
1. Let _resolveCapability_ be ! NewPromiseCapability(%Promise%).
1. Let _index_ be 0.
1. Let _fullfilledCount_ be 0.
1. Let _total_ be the length of the list _promises_.
1. For each Promise _promises_ in _promises_, do
1. Let _stepsFulfilled_ be the following steps with argument _arg_
1. Set _fulfilledCount_ to _fulfilledCount_ + 1.
1. If _fulfilledCount_ is equal to _total_, then
1. Perform ! Call(_resolveCapability_.[[Resolve]], *undefined*, &laquo;*undefined*&raquo;).
1. Let _onFulfilled_ be _CreateBuiltinFunction(_stepsFulfilled_).
1. Let _stepsReject_ be the following steps with argument _arg_
1. Perform ! Call(_resolveCapability_.[[Reject]], *undefined*, &laquo;_arg_&raquo;).
1. Let _onReject_ be _CreateBuiltinFunction_(_stepsReject_).
1. Perform ! PerformPromiseThen(_promise_, _onFulfilled_, _onRejected_).
1. AwaitWithReturn(_resolveCapability_.[[Promise]])).
</emu-alg>
</emu-clause>

<emu-clause id="sec-performbuiltinpromisethen" aoid="PerformBuiltinPromiseThen">
<h1><ins>PerformBuiltinPromiseThen( _builtinFunction_, _onFulfilled_, _onRejected_ )</ins></h1>
<emu-alg>
Expand Down Expand Up @@ -462,7 +441,8 @@ <h1>ModuleExecution( _module_, _dependencyExecPromises_, _resolve_, _reject_ )</
<p>This abstract operation performs the following steps:</p>

<emu-alg>
1. <ins>Perform ? AwaitAll(_dependencyExecPromises_).</ins>
1. <ins>For each Promise _promise_ in _dependencyExecPromises_, do</ins>
1. <ins>AwaitWithReturn(_module_.[[ExecPromise]]).</ins>
1. Let _moduleCxt_ be a new ECMAScript code execution context.
1. Set the Function of _moduleCxt_ to *null*.
1. Assert: _module_.[[Realm]] is not *undefined*.
Expand Down

0 comments on commit e4ee72a

Please sign in to comment.