Commit 904be1c
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 6eefa29 commit 904be1c
1 file changed
+41
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
297 | 326 | | |
298 | 327 | | |
299 | 328 | | |
| |||
2492 | 2521 | | |
2493 | 2522 | | |
2494 | 2523 | | |
2495 | | - | |
2496 | | - | |
2497 | 2524 | | |
2498 | | - | |
2499 | | - | |
2500 | | - | |
2501 | | - | |
2502 | | - | |
2503 | | - | |
2504 | | - | |
2505 | | - | |
2506 | | - | |
| 2525 | + | |
2507 | 2526 | | |
2508 | 2527 | | |
2509 | 2528 | | |
| |||
2519 | 2538 | | |
2520 | 2539 | | |
2521 | 2540 | | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
2522 | 2552 | | |
2523 | 2553 | | |
2524 | 2554 | | |
| |||
0 commit comments