|
@@ -138,7 +138,7 @@ static ThrowCompletionOr<Value> perform_promise_all(VM& vm, Iterator& iterator_r
|
|
// o. Set onFulfilled.[[Values]] to values.
|
|
// o. Set onFulfilled.[[Values]] to values.
|
|
// p. Set onFulfilled.[[Capability]] to resultCapability.
|
|
// p. Set onFulfilled.[[Capability]] to resultCapability.
|
|
// q. Set onFulfilled.[[RemainingElements]] to remainingElementsCount.
|
|
// q. Set onFulfilled.[[RemainingElements]] to remainingElementsCount.
|
|
- auto* on_fulfilled = PromiseAllResolveElementFunction::create(realm, index, values, result_capability, remaining_elements_count);
|
|
|
|
|
|
+ auto on_fulfilled = PromiseAllResolveElementFunction::create(realm, index, values, result_capability, remaining_elements_count);
|
|
on_fulfilled->define_direct_property(vm.names.name, PrimitiveString::create(vm, DeprecatedString::empty()), Attribute::Configurable);
|
|
on_fulfilled->define_direct_property(vm.names.name, PrimitiveString::create(vm, DeprecatedString::empty()), Attribute::Configurable);
|
|
|
|
|
|
// s. Perform ? Invoke(nextPromise, "then", « onFulfilled, resultCapability.[[Reject]] »).
|
|
// s. Perform ? Invoke(nextPromise, "then", « onFulfilled, resultCapability.[[Reject]] »).
|
|
@@ -170,7 +170,7 @@ static ThrowCompletionOr<Value> perform_promise_all_settled(VM& vm, Iterator& it
|
|
// p. Set onFulfilled.[[Values]] to values.
|
|
// p. Set onFulfilled.[[Values]] to values.
|
|
// q. Set onFulfilled.[[Capability]] to resultCapability.
|
|
// q. Set onFulfilled.[[Capability]] to resultCapability.
|
|
// r. Set onFulfilled.[[RemainingElements]] to remainingElementsCount.
|
|
// r. Set onFulfilled.[[RemainingElements]] to remainingElementsCount.
|
|
- auto* on_fulfilled = PromiseAllSettledResolveElementFunction::create(realm, index, values, result_capability, remaining_elements_count);
|
|
|
|
|
|
+ auto on_fulfilled = PromiseAllSettledResolveElementFunction::create(realm, index, values, result_capability, remaining_elements_count);
|
|
on_fulfilled->define_direct_property(vm.names.name, PrimitiveString::create(vm, DeprecatedString::empty()), Attribute::Configurable);
|
|
on_fulfilled->define_direct_property(vm.names.name, PrimitiveString::create(vm, DeprecatedString::empty()), Attribute::Configurable);
|
|
|
|
|
|
// s. Let stepsRejected be the algorithm steps defined in Promise.allSettled Reject Element Functions.
|
|
// s. Let stepsRejected be the algorithm steps defined in Promise.allSettled Reject Element Functions.
|
|
@@ -181,7 +181,7 @@ static ThrowCompletionOr<Value> perform_promise_all_settled(VM& vm, Iterator& it
|
|
// x. Set onRejected.[[Values]] to values.
|
|
// x. Set onRejected.[[Values]] to values.
|
|
// y. Set onRejected.[[Capability]] to resultCapability.
|
|
// y. Set onRejected.[[Capability]] to resultCapability.
|
|
// z. Set onRejected.[[RemainingElements]] to remainingElementsCount.
|
|
// z. Set onRejected.[[RemainingElements]] to remainingElementsCount.
|
|
- auto* on_rejected = PromiseAllSettledRejectElementFunction::create(realm, index, values, result_capability, remaining_elements_count);
|
|
|
|
|
|
+ auto on_rejected = PromiseAllSettledRejectElementFunction::create(realm, index, values, result_capability, remaining_elements_count);
|
|
on_rejected->define_direct_property(vm.names.name, PrimitiveString::create(vm, DeprecatedString::empty()), Attribute::Configurable);
|
|
on_rejected->define_direct_property(vm.names.name, PrimitiveString::create(vm, DeprecatedString::empty()), Attribute::Configurable);
|
|
|
|
|
|
// ab. Perform ? Invoke(nextPromise, "then", « onFulfilled, onRejected »).
|
|
// ab. Perform ? Invoke(nextPromise, "then", « onFulfilled, onRejected »).
|
|
@@ -216,7 +216,7 @@ static ThrowCompletionOr<Value> perform_promise_any(VM& vm, Iterator& iterator_r
|
|
// o. Set onRejected.[[Errors]] to errors.
|
|
// o. Set onRejected.[[Errors]] to errors.
|
|
// p. Set onRejected.[[Capability]] to resultCapability.
|
|
// p. Set onRejected.[[Capability]] to resultCapability.
|
|
// q. Set onRejected.[[RemainingElements]] to remainingElementsCount.
|
|
// q. Set onRejected.[[RemainingElements]] to remainingElementsCount.
|
|
- auto* on_rejected = PromiseAnyRejectElementFunction::create(realm, index, errors, result_capability, remaining_elements_count);
|
|
|
|
|
|
+ auto on_rejected = PromiseAnyRejectElementFunction::create(realm, index, errors, result_capability, remaining_elements_count);
|
|
on_rejected->define_direct_property(vm.names.name, PrimitiveString::create(vm, DeprecatedString::empty()), Attribute::Configurable);
|
|
on_rejected->define_direct_property(vm.names.name, PrimitiveString::create(vm, DeprecatedString::empty()), Attribute::Configurable);
|
|
|
|
|
|
// s. Perform ? Invoke(nextPromise, "then", « resultCapability.[[Resolve]], onRejected »).
|
|
// s. Perform ? Invoke(nextPromise, "then", « resultCapability.[[Resolve]], onRejected »).
|