forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add known issue test for nodejs#8539
child_process.spawnSync segfaults when given an array/object for the file argument with a throwing toString definition. Refs: nodejs#8539 Signed-off-by: Ilkka Myller <[email protected]>
- Loading branch information
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict'; | ||
// Refs: https://github.com/nodejs/node/issues/8539 | ||
require('../common'); | ||
|
||
const file = {}; | ||
file.toString = () => { throw 'foo'; }; | ||
const child_process = require('child_process'); | ||
child_process.spawnSync(file); |