Commit 16f2600
child_process: emit IPC messages on next tick
This commit fixes a regression related to IPC 'message'
events. When messages are not emitted in the next tick,
a 'message' handler that throws can break the IPC read
loop.
Refs: #6909
Refs: #13459
Refs: #13648
PR-URL: #13856
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Santiago Gimeno <[email protected]>1 parent f2d7b80 commit 16f2600
File tree
2 files changed
+46
-11
lines changed- lib/internal
- test/parallel
2 files changed
+46
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
460 | 459 | | |
461 | 460 | | |
462 | 461 | | |
| |||
465 | 464 | | |
466 | 465 | | |
467 | 466 | | |
468 | | - | |
| 467 | + | |
469 | 468 | | |
470 | | - | |
| 469 | + | |
471 | 470 | | |
472 | | - | |
473 | | - | |
| 471 | + | |
474 | 472 | | |
475 | 473 | | |
476 | 474 | | |
| |||
532 | 530 | | |
533 | 531 | | |
534 | 532 | | |
535 | | - | |
| 533 | + | |
536 | 534 | | |
537 | 535 | | |
538 | 536 | | |
| |||
742 | 740 | | |
743 | 741 | | |
744 | 742 | | |
745 | | - | |
| 743 | + | |
746 | 744 | | |
747 | 745 | | |
748 | 746 | | |
749 | 747 | | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
| 748 | + | |
| 749 | + | |
754 | 750 | | |
755 | 751 | | |
756 | 752 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
0 commit comments