We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebb9090 commit 3414e42Copy full SHA for 3414e42
test/parallel/test-stdout-close-catch.js
@@ -6,9 +6,9 @@ const child_process = require('child_process');
6
7
const testScript = path.join(common.fixturesDir, 'catch-stdout-error.js');
8
9
-const cmd = JSON.stringify(process.execPath) + ' ' +
10
- JSON.stringify(testScript) + ' | ' +
11
- JSON.stringify(process.execPath) + ' ' +
+const cmd = `${JSON.stringify(process.execPath)} ` +
+ `${JSON.stringify(testScript)} | ` +
+ `${JSON.stringify(process.execPath)} ` +
12
'-pe "process.stdin.on(\'data\' , () => process.exit(1))"';
13
14
const child = child_process.exec(cmd);
0 commit comments