Closed jorendorff closed 4 years ago
Promise.any Reject Element Functions step 11 says:
Promise.any
If remainingElementsCount.[[Value]] is 0, then Perform ? ThrowAggregateError(errors).
I think this rejects the wrong promise. It should behave like Promise.all and Promise.any, and deliver the results to the promiseCapability fetched in step 7. (Currently that capability is unused.)
Promise.all
Promise.any
Reject Element Functions step 11 says:I think this rejects the wrong promise. It should behave like
Promise.all
andPromise.any
, and deliver the results to the promiseCapability fetched in step 7. (Currently that capability is unused.)