From 50a53f51d9f822a884096cc915e9a09cb611618e Mon Sep 17 00:00:00 2001 From: Susan Cheng Date: Thu, 14 Jul 2022 22:40:05 +0800 Subject: [PATCH] Fix for passing wrong arguments while calling fork function Options should be passed as third parameter ref: https://nodejs.org/api/child_process.html#child_processforkmodulepath-args-options --- src/worker/node/spawnWorker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker/node/spawnWorker.js b/src/worker/node/spawnWorker.js index 2901948..c538244 100644 --- a/src/worker/node/spawnWorker.js +++ b/src/worker/node/spawnWorker.js @@ -11,5 +11,5 @@ let debugPort = 9229; */ module.exports = ({ workerPath }) => { debugPort += 1; - return fork(workerPath, { execArgv: [`--debug-port=${debugPort}`] }); + return fork(workerPath, [], { execArgv: [`--debug-port=${debugPort}`] }); };