|
@ -164,10 +164,11 @@ ChildProcess.prototype.kill = function (sig) { |
|
|
|
|
|
|
|
|
ChildProcess.prototype.spawn = function (path, args, options, customFds) { |
|
|
ChildProcess.prototype.spawn = function (path, args, options, customFds) { |
|
|
args = args || []; |
|
|
args = args || []; |
|
|
options = options || {}; |
|
|
|
|
|
|
|
|
|
|
|
var cwd, env; |
|
|
var cwd, env; |
|
|
if (options.cwd === undefined && options.env === undefined && options.customFds === undefined) { |
|
|
if (!options || options.cwd === undefined && |
|
|
|
|
|
options.env === undefined && |
|
|
|
|
|
options.customFds === undefined) { |
|
|
// Deprecated API: (path, args, options, env, customFds)
|
|
|
// Deprecated API: (path, args, options, env, customFds)
|
|
|
cwd = ""; |
|
|
cwd = ""; |
|
|
env = options || process.env; |
|
|
env = options || process.env; |
|
|