We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27549f6 commit 89460f1Copy full SHA for 89460f1
test/parallel/test-stdout-close-catch.js
@@ -9,7 +9,7 @@ var testScript = path.join(common.fixturesDir, 'catch-stdout-error.js');
9
var cmd = JSON.stringify(process.execPath) + ' ' +
10
JSON.stringify(testScript) + ' | ' +
11
JSON.stringify(process.execPath) + ' ' +
12
- '-pe "process.exit(1);"';
+ '-pe "process.stdin.on(\'data\' , () => process.exit(1))"';
13
14
var child = child_process.exec(cmd);
15
var output = '';
0 commit comments