diff --git a/lib/child_process.js b/lib/child_process.js index 4325caa9496eb1..e8fefce87d7671 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -99,8 +99,7 @@ function fork(modulePath /* , args, options */) { args = arguments[pos++]; } - if (pos < arguments.length && - (arguments[pos] === undefined || arguments[pos] === null)) { + if (pos < arguments.length && arguments[pos] == null) { pos++; }