Commit 9bb1024
child_process: Check stderr before accessing it
If something bad happens in spawnSync, stderr might be null. Therefore,
we have to check it before using it, so we won't mask the actual
exception.
PR-URL: #6877
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Robert Jefe Lindstädt <robert.lindstaedt@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>1 parent 72fc4eb commit 9bb1024Copy full SHA for 9bb1024
File tree
Expand file treeCollapse file tree
2 files changed
+14
-2
lines changedOpen diff view settings
Filter options
- lib
- test/sequential
Expand file treeCollapse file tree
2 files changed
+14
-2
lines changedOpen diff view settings
Collapse file
+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
489 | 489 | |
490 | 490 | |
491 | 491 | |
492 | | - |
| 492 | + |
493 | 493 | |
494 | 494 | |
495 | 495 | |
| ||
509 | 509 | |
510 | 510 | |
511 | 511 | |
512 | | - |
| 512 | + |
513 | 513 | |
514 | 514 | |
515 | 515 | |
|
Collapse file
test/sequential/test-child-process-execsync.js
Copy file name to clipboardExpand all lines: test/sequential/test-child-process-execsync.js+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
15 | 27 | |
16 | 28 | |
17 | 29 | |
|
0 commit comments