@@ -80,27 +80,6 @@ <h1><ins>AwaitWithReturn( _promise_ )</ins></h1>
80
80
</emu-alg >
81
81
</emu-clause >
82
82
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* , « ; *undefined* » ; ).
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* , « ; _arg_ » ; ).
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
-
104
83
<emu-clause id =" sec-performbuiltinpromisethen" aoid =" PerformBuiltinPromiseThen" >
105
84
<h1 ><ins >PerformBuiltinPromiseThen( _builtinFunction_ , _onFulfilled_ , _onRejected_ )</ins ></h1 >
106
85
<emu-alg >
@@ -462,7 +441,8 @@ <h1>ModuleExecution( _module_, _dependencyExecPromises_, _resolve_, _reject_ )</
462
441
<p >This abstract operation performs the following steps:</p >
463
442
464
443
<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 >
466
446
1. Let _moduleCxt_ be a new ECMAScript code execution context.
467
447
1. Set the Function of _moduleCxt_ to *null* .
468
448
1. Assert: _module_ .[[Realm]] is not *undefined* .
0 commit comments