diff --git a/lib/child_process.js b/lib/child_process.js index 74699a16834c30..c72270de103935 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++; }