Skip to content

Commit 4ffbf08

Browse files
child_process: handling fork( path, undefined / null, obj )
Closes: #20749
1 parent 4e7d829 commit 4ffbf08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/child_process.js

+5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ exports.fork = function fork(modulePath /* , args, options */) {
6969
args = arguments[pos++];
7070
}
7171

72+
if (pos < arguments.length && (arguments[pos] === undefined ||
73+
arguments[pos] === null)) {
74+
pos++;
75+
}
76+
7277
if (pos < arguments.length && arguments[pos] != null) {
7378
if (typeof arguments[pos] !== 'object') {
7479
throw new ERR_INVALID_ARG_VALUE(`arguments[${pos}]`, arguments[pos]);

0 commit comments

Comments
 (0)