Skip to content

Commit

Permalink
Also properly forwards execArgv
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis committed Sep 21, 2022
1 parent e369572 commit 05cb903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class Worker extends EventEmitter {
// Set up the C++ handle for the worker, as well as some internal wiring.
this[kHandle] = new WorkerImpl(url,
env,
options.execArgv,
options.execArgv ?? process.execArgv,
parseResourceLimits(options.resourceLimits),
!!(options.trackUnmanagedFds ?? true));
if (this[kHandle].invalidExecArgv) {
Expand Down

0 comments on commit 05cb903

Please sign in to comment.