| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 486d51a commit be2d60d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -366,11 +366,8 @@ ChildProcess.prototype.spawn = function(options) { | |||
| 366 | 366 | // Let child process know about opened IPC channel | |
| 367 | 367 | if (options.envPairs === undefined) | |
| 368 | 368 | options.envPairs = []; | |
| 369 | - else if (!ArrayIsArray(options.envPairs)) { | ||
| 370 | - throw new ERR_INVALID_ARG_TYPE('options.envPairs', | ||
| 371 | - 'Array', | ||
| 372 | - options.envPairs); | ||
| 373 | - } | ||
| 369 | + else | ||
| 370 | + validateArray(options.envPairs, 'options.envPairs'); | ||
| 374 | 371 | ||
| 375 | 372 | ArrayPrototypePush(options.envPairs, `NODE_CHANNEL_FD=${ipcFd}`); | |
| 376 | 373 | ArrayPrototypePush(options.envPairs, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments