-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
worker: process.argv for workers #30531
Comments
@legendecas Feel free to open a PR with this if you like – I think you can pass it around the same way that we pass I would suggest |
@addaleax 😄 I'd like to. Just open the issue to ask around if it was left there intentionally. |
@legendecas As far as I am concerned, |
A convenience option to populate `process.argv` in worker threads. PR-URL: #30559 Fixes: #30531 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
A convenience option to populate `process.argv` in worker threads. PR-URL: #30559 Fixes: #30531 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
A convenience option to populate `process.argv` in worker threads. PR-URL: #30559 Fixes: #30531 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Denys Otrishko <[email protected]>
Is your feature request related to a problem? Please describe.
process.argv
is commonly used in Node.js. Right now there is onlyexecArgv
for altering how node instance works, which will be filteredprocess.argv
with these only Node.js understands.Describe the solution you'd like
Add an option
argv
toWorker
constructor's second argument.Describe alternatives you've considered
Just use option
workerData
inWorker
constructor's second argument.The text was updated successfully, but these errors were encountered: