Revert "src: make sure pass the argv to worker threads"#53021
Revert "src: make sure pass the argv to worker threads"#53021nicolo-ribaudo wants to merge 2 commits intonodejs:mainfrom
argv to worker threads"#53021Conversation
dd4cd0c to
33bbb6c
Compare
|
What should I do about the cpp formatter failure? Edit the revert commit so that it doesn't only revert, but also fix formatting? Or add a new commit just to format? |
33bbb6c to
2c65c8d
Compare
It 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
This reverts commit aba4a00.
2c65c8d to
e05e072
Compare
I misread what you were asking. I'm not in any way the person to give advice on this, but I'd add a new commit for now, they can always be changed later |
I would add a fixup commit ( Shouldn't the revert comes first, then the added test can be applied? Otherwise tests won't be passing on that first commit IIUC |
|
I have opened an PR and try to fix this. |
|
Closing in favor of #53029 |
aba4a00 introduced a regression, making it impossible to use
Worker'senvoption when the process is start with process-specific flags, such as--titleor--expose_gc. See the new test case, in which all the threenew Worker()calls fail.aba4a00 was released yesterday in 22.2.0.
Commit 1:
Commit 2:
Fixes #53011, cc @theanarkh