From caab2575ac8b43af930f105d258bd1e258ac9153 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20F=C3=A4cke?= Date: Sun, 29 Apr 2018 11:18:38 +0200 Subject: [PATCH] child_process: name anonymous functions Refs: https://github.com/nodejs/node/issues/8913 --- lib/child_process.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/child_process.js b/lib/child_process.js index ee3752a817e781..734f67d7a51f99 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -59,7 +59,7 @@ function stdioStringToArray(option) { } } -exports.fork = function(modulePath /* , args, options */) { +exports.fork = function fork(modulePath /* , args, options */) { // Get options and args arguments. var execArgv; @@ -110,7 +110,7 @@ exports.fork = function(modulePath /* , args, options */) { }; -exports._forkChild = function(fd) { +exports._forkChild = function _forkChild(fd) { // set process.send() var p = new Pipe(PipeConstants.IPC); p.open(fd); @@ -143,7 +143,7 @@ function normalizeExecArgs(command, options, callback) { } -exports.exec = function(command /* , options, callback */) { +exports.exec = function exec(command /* , options, callback */) { var opts = normalizeExecArgs.apply(null, arguments); return exports.execFile(opts.file, opts.options, @@ -172,7 +172,7 @@ Object.defineProperty(exports.exec, util.promisify.custom, { value: customPromiseExecFunction(exports.exec) }); -exports.execFile = function(file /* , args, options, callback */) { +exports.execFile = function execFile(file /* , args, options, callback */) { var args = []; var callback; var options = { @@ -511,7 +511,7 @@ function normalizeSpawnArguments(file, args, options) { } -var spawn = exports.spawn = function(/* file, args, options */) { +var spawn = exports.spawn = function spawn(/* file, args, options */) { var opts = normalizeSpawnArguments.apply(null, arguments); var options = opts.options; var child = new ChildProcess();