Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/naptha/tesseract.js.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSusan Cheng <susan.doggie@gmail.com>2022-07-14 17:40:05 +0300
committerGitHub <noreply@github.com>2022-07-14 17:40:05 +0300
commit50a53f51d9f822a884096cc915e9a09cb611618e (patch)
tree850a5099ac1e4f34151d2008596e8a96e6c0148c
parentadcb5b875986ebe61d7235e64d956d648c53c1dd (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.js2
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}`] });
};