Skip to content

Commit 05cb903

Browse files
committed
Also properly forwards execArgv
1 parent e369572 commit 05cb903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class Worker extends EventEmitter {
190190
// Set up the C++ handle for the worker, as well as some internal wiring.
191191
this[kHandle] = new WorkerImpl(url,
192192
env,
193-
options.execArgv,
193+
options.execArgv ?? process.execArgv,
194194
parseResourceLimits(options.resourceLimits),
195195
!!(options.trackUnmanagedFds ?? true));
196196
if (this[kHandle].invalidExecArgv) {

0 commit comments

Comments
 (0)