Commit 2aff060
committed
fix(runtime): let termination outrank settlement in PumpUntil
A Terminate() racing an entry that genuinely settles returned kSettled,
and the caller went on to run JS (worker queue enable, drains) on an
isolate with TerminateExecution pending. Both settle probes now funnel
through the loop head, where the termination check comes first; a
fulfilled module's registration is untouched on that path, only its
result is discarded.1 parent 351bef6 commit 2aff060
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | 739 | | |
743 | 740 | | |
744 | 741 | | |
| 742 | + | |
| 743 | + | |
745 | 744 | | |
746 | 745 | | |
747 | 746 | | |
748 | 747 | | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
749 | 751 | | |
750 | 752 | | |
751 | 753 | | |
| |||
771 | 773 | | |
772 | 774 | | |
773 | 775 | | |
774 | | - | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
775 | 779 | | |
776 | 780 | | |
777 | 781 | | |
| |||
0 commit comments