Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

child_process: name anonymous functions #20399

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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