-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to filter invalid arguments from execArgv
when launching worker threads
#3207
Comments
I also want to do this! Would like to access GC control in my tests, with one of these options:
Temporarily I disabled workers to get it running. export default {
verbose: true,
workerThreads: false
} |
@shellscape I'm not sure what the best way out of this is. We do explicitly forward the I think not forwarding |
Looks like the explicit The problem though is we need to pass a flag to enable source maps, which means we can never inherit the default Line 17 in 6398772
Filtering the list seems problematic since it may change between Node.js releases, unless there's a third party dependency we can use for that. |
Yeah it's a tricky one. This is a documented issue across the Node ecosystem as well - it's a gap between process and workers in Node and so far the Node core team won't address it. The tool I was using has since removed use of If that doesn't feel right, adding to the docs about this edge case would probably suffice. |
Having thought about this some more, we could add a As for documentation, how about this? #3215 |
See also #3025. |
Those are both great. I think we're in good shape to close this. |
execArgv
should not be passed invalid argumentsexecArgv
when launching worker threads
I think a filter function could be a useful addition, so I'll leave this open for now. |
Please provide details about:
I'm using a task runner that's constructing Node commands as such:
--title
is not valid for creating a worker.I'd expect that Ava would filter out options that would throw. Probably related nodejs/node#41103 (comment)
The text was updated successfully, but these errors were encountered: