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
Copy file name to clipboardExpand all lines: spec.emu
+19-11Lines changed: 19 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -92,40 +92,48 @@ contributors: Alexander J. Vincent, Ashley Claymore, Chris de Almeida, Jordan Ha
92
92
1. Append *undefined* to _values_.
93
93
1. Let _nextPromise_ be ? Call(_promiseResolve_, _constructor_, « _value_ »).
94
94
1. Let _alreadyCalled_ be the Record { [[Value]]: *false* }.
95
-
1. Let _onFulfilled_ be a new Abstract Closure with parameters (_x_) that captures _variant_, _alreadyCalled_, _index_, _keys_, _values_, _resultCapability_, and _remainingElementsCount_ and performs the following steps when called:
96
-
1. If _alreadyCalled_.[[Value]] is *true*, return *undefined*.
97
-
1. Set _alreadyCalled_.[[Value]] to *true*.
95
+
1. Let _onFulfilledSteps_ be a new Abstract Closure with parameters (_x_) that captures _variant_, _keys_, _values_, _resultCapability_, and _remainingElementsCount_ and performs the following steps when called:
96
+
1. Let _F_ be the active function object.
97
+
1. If _F_.[[AlreadyCalled]].[[Value]] is *true*, return *undefined*.
98
+
1. Set _F_.[[AlreadyCalled]].[[Value]] to *true*.
99
+
1. Let _thisIndex_ be _F_.[[Index]].
98
100
1. If _variant_ is ~all~, then
99
-
1. Set _values_[_index_] to _x_.
101
+
1. Set _values_[_thisIndex_] to _x_.
100
102
1. Else,
101
103
1. Assert: _variant_ is ~all-settled~.
102
104
1. Let _obj_ be OrdinaryObjectCreate(%Object.prototype%).
1. Let _onFulfilled_ be CreateBuiltinFunction(_onFulfilledSteps_, 1, *""*, « [[AlreadyCalled]], [[Index]] »).
114
+
1. Set _onFulfilled_.[[AlreadyCalled]] to _alreadyCalled_.
115
+
1. Set _onFulfilled_.[[Index]] to _index_.
112
116
1. If _variant_ is ~all~, then
113
117
1. Let _onRejected_ be _resultCapability_.[[Reject]].
114
118
1. Else,
115
119
1. Assert: _variant_ is ~all-settled~.
116
-
1. Let _onRejected_ be a new Abstract Closure with parameters (_x_) that captures _alreadyCalled_, _index_, _keys_, _values_, _resultCapability_, and _remainingElementsCount_ and performs the following steps when called:
117
-
1. If _alreadyCalled_.[[Value]] is *true*, return *undefined*.
118
-
1. Set _alreadyCalled_.[[Value]] to *true*.
120
+
1. Let _onRejectedSteps_ be a new Abstract Closure with parameters (_x_) that captures _keys_, _values_, _resultCapability_, and _remainingElementsCount_ and performs the following steps when called:
121
+
1. Let _F_ be the active function object.
122
+
1. If _F_.[[AlreadyCalled]].[[Value]] is *true*, return *undefined*.
123
+
1. Set _F_.[[AlreadyCalled]].[[Value]] to *true*.
124
+
1. Let _thisIndex_ be _F_.[[Index]].
119
125
1. Let _obj_ be OrdinaryObjectCreate(%Object.prototype%).
0 commit comments