Revert "src: make sure pass the `argv` to worker threads"
aba4a00c introduced a regression, making it impossible to use Worker
's env
option when the process is start with process-specific flags, such as --title
or --expose_gc
. See the new test case, in which all the three new Worker()
calls fail.
aba4a00c was released yesterday in 22.2.0.
Commit 1:
worker: Add test for
env
option when using process-only cli flagIt should be possible to pass the
env
option to a worker even when the parent process is using a process-level flag, such as--title
or a V8-specific flag.This test is currently failing in Node.js 22.2.0
Commit 2:
Revert "src: make sure pass the
argv
to worker threads"This reverts commit aba4a00c.
Fixes #53011 (closed), cc @theanarkh