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
// e. Let steps be the algorithm steps defined in Promise.all Resolve Element Functions.
1024
-
// f. Let length be the number of non-optional parameters of the function definition in Promise.all Resolve Element Functions.
1025
-
// g. Let onFulfilled be CreateBuiltinFunction(steps, length, "", « [[AlreadyCalled]], [[Index]], [[Values]], [[Capability]], [[RemainingElements]] »).
1026
-
// h. Set onFulfilled.[[AlreadyCalled]] to false.
1027
-
// i. Set onFulfilled.[[Index]] to index.
1028
-
// j. Set onFulfilled.[[Values]] to values.
1021
+
// e. Let stepsFulfilled be the algorithm steps defined in Promise.allSettled Resolve Element Functions.
1022
+
// f. Let lengthFulfilled be the number of non-optional parameters of the function definition in Promise.allSettled Resolve Element Functions.
1023
+
// g. Let onFulfilled be CreateBuiltinFunction(stepsFulfilled, lengthFulfilled, "", « [[AlreadyCalled]], [[Index]], [[Values]], [[Capability]], [[RemainingElements]] »).
1024
+
// h. Let alreadyCalled be the Record { [[Value]]: false }.
1025
+
// i. Set onFulfilled.[[AlreadyCalled]] to alreadyCalled.
1026
+
// j. Set onFulfilled.[[Index]] to index.
1027
+
// k. Set onFulfilled.[[Values]] to values.
1028
+
// l. Set onFulfilled.[[Capability]] to resultCapability.
1029
+
// m. Set onFulfilled.[[RemainingElements]] to remainingElementsCount.
1030
+
// n. Let stepsRejected be the algorithm steps defined in Promise.allSettled Reject Element Functions.
1031
+
// o. Let lengthRejected be the number of non-optional parameters of the function definition in Promise.allSettled Reject Element Functions.
1032
+
// p. Let onRejected be CreateBuiltinFunction(stepsRejected, lengthRejected, "", « [[AlreadyCalled]], [[Index]], [[Values]], [[Capability]], [[RemainingElements]] »).
1033
+
// q. Set onRejected.[[AlreadyCalled]] to alreadyCalled.
1034
+
// r. Set onRejected.[[Index]] to index.
1035
+
// s. Set onRejected.[[Values]] to values.
1036
+
// t. Set onRejected.[[Capability]] to resultCapability.
1037
+
// u. Set onRejected.[[RemainingElements]] to remainingElementsCount.
1029
1038
let promise_all_settled = promise_all_settled_reference.get(agent).bind(gc.nogc());
1030
1039
let reaction = PromiseReactionHandler::PromiseAllSettled{
1031
1040
index,
1032
1041
promise_all_settled,
1033
1042
};
1034
-
// k. Set onFulfilled.[[Capability]] to resultCapability.
1035
-
// l. Set onFulfilled.[[RemainingElements]] to remainingElementsCount.
1036
-
// m. Set remainingElementsCount.[[Value]] to remainingElementsCount.[[Value]] + 1.
1043
+
1044
+
// v. Set remainingElementsCount.[[Value]] to remainingElementsCount.[[Value]] + 1.
0 commit comments