Commit e6efb85
committed
Bug 1992103 - Align async modules rejection order with fulfillment order r=jonco
This patch inverts the order in which we reject promises in
AsyncModuleExecutionRejected to match AsyncModuleExecutionFulfilled:
first the promise corresponding to the leaf module (the one that throws)
is rejected, and then its ancestors.
This change was discussed at the July 2025 TC39 meeting.
Spec PR: tc39/ecma262#3695
test262: tc39/test262#4591
Differential Revision: https://phabricator.services.mozilla.com/D267210
UltraBlame original commit: a3cf4d1eef17209c4c4194e07f38fe870c4177811 parent 1fe29ec commit e6efb85
1 file changed
+264
-112
lines changed
0 commit comments