diff options
author | Susan Cheng <susan.doggie@gmail.com> | 2022-07-14 17:40:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-14 17:40:05 +0300 |
commit | 50a53f51d9f822a884096cc915e9a09cb611618e (patch) | |
tree | 850a5099ac1e4f34151d2008596e8a96e6c0148c | |
parent | adcb5b875986ebe61d7235e64d956d648c53c1dd (diff) |
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
-rw-r--r-- | src/worker/node/spawnWorker.js | 2 |
1 files changed, 1 insertions, 1 deletions
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}`] }); }; |