-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.
Description
- Version: 10.5.0 (but I think this is not related)
- Platform: Ubuntu 18.04.1 LTS (but I think this is not related)
- Subsystem: child_process
Hi,
I've just realized that this code can't work because args parameter can't be null. But it's not documented and I think it can be disturbing.
childProcess.fork(app.js', null, {
execPath: process.execPath
})
But the following will work :
childProcess.fork(app.js', [], {
execPath: process.execPath
})
I think this line is related to the issue :
Line 71 in 2bea9ce
if (pos < arguments.length && arguments[pos] != null) { |
I'm not sure if it's the intended behavior, or if it's a lack in the documentation ?
Metadata
Metadata
Assignees
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.docIssues and PRs related to the documentations.Issues and PRs related to the documentations.help wantedIssues that need assistance from volunteers or PRs that need help to proceed.Issues that need assistance from volunteers or PRs that need help to proceed.