Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

allow options without args in fork#2424

Closed
AndreasMadsen wants to merge 5 commits intonodejs:masterfrom
AndreasMadsen:fork-args
Closed

allow options without args in fork#2424
AndreasMadsen wants to merge 5 commits intonodejs:masterfrom
AndreasMadsen:fork-args

Conversation

@AndreasMadsen
Copy link
Member

This patch allow use of options without the args argument in child_process.fork. This arguments was already optional in the code, but .slice(0) would throw an error if someone would do child_process.fork('child,js', {slient: true}).

This patch detect if the second argument is an array and then define the arguments variables.

@AndreasMadsen
Copy link
Member Author

@piscisaureus ready to go :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants