-
-
Notifications
You must be signed in to change notification settings - Fork 37.2k
worker: process.argv for workers #30531
Copy link
Copy link
Closed
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.workerIssues and PRs related to the worker_threads module and Worker API.Issues and PRs related to the worker_threads module and Worker API.
Description
Activity
Metadata
Metadata
Assignees
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.workerIssues and PRs related to the worker_threads module and Worker API.Issues and PRs related to the worker_threads module and Worker API.
Is your feature request related to a problem? Please describe.
process.argvis commonly used in Node.js. Right now there is onlyexecArgvfor altering how node instance works, which will be filteredprocess.argvwith these only Node.js understands.Describe the solution you'd like
Add an option
argvtoWorkerconstructor's second argument.Describe alternatives you've considered
Just use option
workerDatainWorkerconstructor's second argument.