Skip to content

Commit

Permalink
child_process: name anonymous functions
Browse files Browse the repository at this point in the history
Refs: #8913

PR-URL: #20399
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
SerayaEryn authored and MylesBorins committed May 8, 2018
1 parent e552158 commit b5931e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit b5931e1

Please sign in to comment.