Browse Source

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
pull/621/head
Susan Cheng 3 years ago committed by GitHub
parent
commit
50a53f51d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/worker/node/spawnWorker.js

2
src/worker/node/spawnWorker.js

@ -11,5 +11,5 @@ let debugPort = 9229; @@ -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}`] });
};

Loading…
Cancel
Save