Skip to content

Commit e4ee72a

Browse files
committed
Revert "do use awaitall"
This reverts commit 796d17c.
1 parent 796d17c commit e4ee72a

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

spec.html

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -80,27 +80,6 @@ <h1><ins>AwaitWithReturn( _promise_ )</ins></h1>
8080
</emu-alg>
8181
</emu-clause>
8282

83-
<emu-clause id="sec-awaitall" aoid="AwaitAll">
84-
<h1><ins>AwaitAll( _promises_ )</ins></h1>
85-
<emu-alg>
86-
1. Let _resolveCapability_ be ! NewPromiseCapability(%Promise%).
87-
1. Let _index_ be 0.
88-
1. Let _fullfilledCount_ be 0.
89-
1. Let _total_ be the length of the list _promises_.
90-
1. For each Promise _promises_ in _promises_, do
91-
1. Let _stepsFulfilled_ be the following steps with argument _arg_
92-
1. Set _fulfilledCount_ to _fulfilledCount_ + 1.
93-
1. If _fulfilledCount_ is equal to _total_, then
94-
1. Perform ! Call(_resolveCapability_.[[Resolve]], *undefined*, &laquo;*undefined*&raquo;).
95-
1. Let _onFulfilled_ be _CreateBuiltinFunction(_stepsFulfilled_).
96-
1. Let _stepsReject_ be the following steps with argument _arg_
97-
1. Perform ! Call(_resolveCapability_.[[Reject]], *undefined*, &laquo;_arg_&raquo;).
98-
1. Let _onReject_ be _CreateBuiltinFunction_(_stepsReject_).
99-
1. Perform ! PerformPromiseThen(_promise_, _onFulfilled_, _onRejected_).
100-
1. AwaitWithReturn(_resolveCapability_.[[Promise]])).
101-
</emu-alg>
102-
</emu-clause>
103-
10483
<emu-clause id="sec-performbuiltinpromisethen" aoid="PerformBuiltinPromiseThen">
10584
<h1><ins>PerformBuiltinPromiseThen( _builtinFunction_, _onFulfilled_, _onRejected_ )</ins></h1>
10685
<emu-alg>
@@ -462,7 +441,8 @@ <h1>ModuleExecution( _module_, _dependencyExecPromises_, _resolve_, _reject_ )</
462441
<p>This abstract operation performs the following steps:</p>
463442

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

0 commit comments

Comments
 (0)