Repository navigation
Commit 3641a56
fix(runtime): shim removeListener drops the newest registration; an adopted port is recorded before the list write can fail
WorkerEmitter.removeListener scanned forwards while ParentPort and Node
remove the most recently added registration. In Deserialize a port adopted
successfully but not yet recorded was skipped by the failure cleanup when
the ports array write failed, leaving it registered with no handle.1 parent d13571d commit 3641a56
2 files changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
685 | 685 | | |
686 | 686 | | |
687 | 687 | | |
688 | | - | |
689 | | - | |
690 | | - | |
| 688 | + | |
691 | 689 | | |
692 | 690 | | |
693 | 691 | | |
| 692 | + | |
| 693 | + | |
694 | 694 | | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
695 | 700 | | |
696 | 701 | | |
697 | 702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| |||
0 commit comments