From c0be069553dd5eee51b84cd3f985b1431296d082 Mon Sep 17 00:00:00 2001 From: razvanbh Date: Sat, 10 Nov 2018 21:47:33 +0200 Subject: [PATCH] Implemented suggested changes. --- test/parallel/test-child-process-no-deprecation.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/parallel/test-child-process-no-deprecation.js b/test/parallel/test-child-process-no-deprecation.js index 20973302ddfbbb..d12e5b882f6375 100644 --- a/test/parallel/test-child-process-no-deprecation.js +++ b/test/parallel/test-child-process-no-deprecation.js @@ -9,8 +9,7 @@ if (process.argv[2] === 'child') { const spawn = require('child_process').spawn; // spawn self as child - const child = spawn(process.argv[0], [process.argv[1], 'child']); + const child = spawn(process.execPath, [process.argv[1], 'child']); - child.stderr.setEncoding('utf8'); child.stderr.on('data', common.mustNotCall()); }