Skip to content

Commit b5931e1

Browse files
SerayaErynMylesBorins
authored andcommitted
child_process: name anonymous functions
Refs: #8913 PR-URL: #20399 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent e552158 commit b5931e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/child_process.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function stdioStringToArray(option) {
5959
}
6060
}
6161

62-
exports.fork = function(modulePath /* , args, options */) {
62+
exports.fork = function fork(modulePath /* , args, options */) {
6363

6464
// Get options and args arguments.
6565
var execArgv;
@@ -110,7 +110,7 @@ exports.fork = function(modulePath /* , args, options */) {
110110
};
111111

112112

113-
exports._forkChild = function(fd) {
113+
exports._forkChild = function _forkChild(fd) {
114114
// set process.send()
115115
var p = new Pipe(PipeConstants.IPC);
116116
p.open(fd);
@@ -143,7 +143,7 @@ function normalizeExecArgs(command, options, callback) {
143143
}
144144

145145

146-
exports.exec = function(command /* , options, callback */) {
146+
exports.exec = function exec(command /* , options, callback */) {
147147
var opts = normalizeExecArgs.apply(null, arguments);
148148
return exports.execFile(opts.file,
149149
opts.options,
@@ -172,7 +172,7 @@ Object.defineProperty(exports.exec, util.promisify.custom, {
172172
value: customPromiseExecFunction(exports.exec)
173173
});
174174

175-
exports.execFile = function(file /* , args, options, callback */) {
175+
exports.execFile = function execFile(file /* , args, options, callback */) {
176176
var args = [];
177177
var callback;
178178
var options = {
@@ -511,7 +511,7 @@ function normalizeSpawnArguments(file, args, options) {
511511
}
512512

513513

514-
var spawn = exports.spawn = function(/* file, args, options */) {
514+
var spawn = exports.spawn = function spawn(/* file, args, options */) {
515515
var opts = normalizeSpawnArguments.apply(null, arguments);
516516
var options = opts.options;
517517
var child = new ChildProcess();

0 commit comments

Comments
 (0)