Skip to content

Commit c0be069

Browse files
committed
Implemented suggested changes.
1 parent 4e1d309 commit c0be069

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/parallel/test-child-process-no-deprecation.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ if (process.argv[2] === 'child') {
99
const spawn = require('child_process').spawn;
1010

1111
// spawn self as child
12-
const child = spawn(process.argv[0], [process.argv[1], 'child']);
12+
const child = spawn(process.execPath, [process.argv[1], 'child']);
1313

14-
child.stderr.setEncoding('utf8');
1514
child.stderr.on('data', common.mustNotCall());
1615
}

0 commit comments

Comments
 (0)