You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -80,34 +78,32 @@ contributors: Alexander J. Vincent, Ashley Claymore, Chris de Almeida, Jordan Ha
80
78
</dl>
81
79
<emu-alg>
82
80
1. Let _allKeys_ be ? _promises_.[[OwnPropertyKeys]]().
83
-
1. Let _keys_ be a new empty List.
84
-
1. Let _values_ be a new empty List.
81
+
1. Let _entries_ be a new empty List.
85
82
1. Let _remainingElementsCount_ be the Record { [[Value]]: 1 }.
86
83
1. Let _index_ be 0.
87
84
1. For each element _key_ of _allKeys_, do
88
85
1. Let _propertyDesc_ be ? _promises_.[[GetOwnProperty]](_key_).
89
86
1. If _propertyDesc_ is not *undefined* and _propertyDesc_.[[Enumerable]] is *true*, then
90
87
1. Let _propertyValue_ be ? Get(_promises_, _key_).
91
-
1. Append _key_ to _keys_.
92
-
1. Append *undefined* to _values_.
88
+
1. Append the Record { [[Key]]: _key_, [[Value]]: *undefined* } to _entries_.
93
89
1. Let _nextPromise_ be ? Call(_promiseResolve_, _ctor_, « _propertyValue_ »).
94
90
1. Let _alreadyCalled_ be the Record { [[Value]]: *false* }.
95
-
1. Let _fulfilledSteps_ be a new Abstract Closure with parameters (_value_) that captures _variant_, _keys_, _values_, _resultCapability_, and _remainingElementsCount_ and performs the following steps when called:
91
+
1. Let _fulfilledSteps_ be a new Abstract Closure with parameters (_value_) that captures _variant_, _entries_, _resultCapability_, and _remainingElementsCount_ and performs the following steps when called:
96
92
1. Let _activeFunc_ be the active function object.
97
93
1. If _activeFunc_.[[AlreadyCalled]].[[Value]] is *true*, return *undefined*.
98
94
1. Set _activeFunc_.[[AlreadyCalled]].[[Value]] to *true*.
99
95
1. Let _thisIndex_ be _activeFunc_.[[Index]].
100
96
1. If _variant_ is ~all~, then
101
-
1. Set _values_[_thisIndex_] to _value_.
97
+
1. Set _entries_[_thisIndex_].[[Value]] to _value_.
102
98
1. Else,
103
99
1. Assert: _variant_ is ~all-settled~.
104
100
1. Let _obj_ be OrdinaryObjectCreate(%Object.prototype%).
1. Let _onFulfilled_ be CreateBuiltinFunction(_fulfilledSteps_, 1, *""*, « [[AlreadyCalled]], [[Index]] »).
@@ -117,18 +113,18 @@ contributors: Alexander J. Vincent, Ashley Claymore, Chris de Almeida, Jordan Ha
117
113
1. Let _onRejected_ be _resultCapability_.[[Reject]].
118
114
1. Else,
119
115
1. Assert: _variant_ is ~all-settled~.
120
-
1. Let _rejectedSteps_ be a new Abstract Closure with parameters (_error_) that captures _keys_, _values_, _resultCapability_, and _remainingElementsCount_ and performs the following steps when called:
116
+
1. Let _rejectedSteps_ be a new Abstract Closure with parameters (_error_) that captures _entries_, _resultCapability_, and _remainingElementsCount_ and performs the following steps when called:
121
117
1. Let _activeFunc_ be the active function object.
122
118
1. If _activeFunc_.[[AlreadyCalled]].[[Value]] is *true*, return *undefined*.
123
119
1. Set _activeFunc_.[[AlreadyCalled]].[[Value]] to *true*.
124
120
1. Let _thisIndex_ be _activeFunc_.[[Index]].
125
121
1. Let _obj_ be OrdinaryObjectCreate(%Object.prototype%).
0 commit comments