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: nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations.rs
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
// License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
Copy file name to clipboardExpand all lines: nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_all.rs
Copy file name to clipboardExpand all lines: nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_all_record.rs
Copy file name to clipboardExpand all lines: nova_vm/src/ecmascript/builtins/control_abstraction_objects/promise_objects/promise_abstract_operations/promise_jobs.rs
// Note: as we don't yet support Promise subclassing, if we see a
1169
-
// non-Promise return we wrap it inside a resolved Promise to get
1170
-
// then-chaining.
1171
-
let next_promise = match call_result {
1172
-
Value::Promise(next_promise) => next_promise,
1173
-
_ => Promise::new_resolved(agent, call_result),
1174
-
};
1175
-
1176
-
// e. Let steps be the algorithm steps defined in Promise.all Resolve Element Functions.
1177
-
// f. Let length be the number of non-optional parameters of the function definition in Promise.all Resolve Element Functions.
1178
-
// g. Let onFulfilled be CreateBuiltinFunction(steps, length, "", « [[AlreadyCalled]], [[Index]], [[Values]], [[Capability]], [[RemainingElements]] »).
1179
-
// h. Set onFulfilled.[[AlreadyCalled]] to false.
1180
-
// i. Set onFulfilled.[[Index]] to index.
1181
-
// j. Set onFulfilled.[[Values]] to values.
1182
-
let reaction = promise_all_handler
1183
-
.to_reaction_handler(index, gc.nogc())
1184
-
.bind(gc.nogc());
1185
-
1186
-
// k. Set onFulfilled.[[Capability]] to resultCapability.
1187
-
// l. Set onFulfilled.[[RemainingElements]] to remainingElementsCount.
1188
-
// m. Set remainingElementsCount.[[Value]] to remainingElementsCount.[[Value]] + 1.
0 commit comments