summaryrefslogtreecommitdiff
path: root/lib/child_process.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/child_process.js')
-rw-r--r--lib/child_process.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/child_process.js b/lib/child_process.js
index 0e1d8f2986..e0e81c8dec 100644
--- a/lib/child_process.js
+++ b/lib/child_process.js
@@ -48,7 +48,7 @@ exports.fork = function(modulePath /*, args, options*/) {
// Use a separate fd=3 for the IPC channel. Inherit stdin, stdout,
// and stderr from the parent if silent isn't set.
options.stdio = options.silent ? ['pipe', 'pipe', 'pipe', 'ipc'] :
- [0, 1, 2, 'ipc'];
+ [0, 1, 2, 'ipc'];
} else if (options.stdio.indexOf('ipc') === -1) {
throw new TypeError('Forked processes must have an IPC channel');
}
@@ -321,7 +321,7 @@ function normalizeSpawnArguments(file, args, options) {
if (process.platform === 'win32') {
file = typeof options.shell === 'string' ? options.shell :
- process.env.comspec || 'cmd.exe';
+ process.env.comspec || 'cmd.exe';
args = ['/s', '/c', '"' + command + '"'];
options.windowsVerbatimArguments = true;
} else {
@@ -427,9 +427,9 @@ function spawnSync(/*file, args, options*/) {
pipe.input = Buffer.from(input, options.encoding);
else
throw new TypeError(util.format(
- 'stdio[%d] should be Buffer or string not %s',
- i,
- typeof input));
+ 'stdio[%d] should be Buffer or string not %s',
+ i,
+ typeof input));
}
}