We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 486d51a commit be2d60dCopy full SHA for be2d60d
lib/internal/child_process.js
@@ -366,11 +366,8 @@ ChildProcess.prototype.spawn = function(options) {
366
// Let child process know about opened IPC channel
367
if (options.envPairs === undefined)
368
options.envPairs = [];
369
- else if (!ArrayIsArray(options.envPairs)) {
370
- throw new ERR_INVALID_ARG_TYPE('options.envPairs',
371
- 'Array',
372
- options.envPairs);
373
- }
+ else
+ validateArray(options.envPairs, 'options.envPairs');
374
375
ArrayPrototypePush(options.envPairs, `NODE_CHANNEL_FD=${ipcFd}`);
376
ArrayPrototypePush(options.envPairs,
0 commit comments