Skip to content

Commit b5931e1

Browse files
Denis FäckeMylesBorins
authored andcommitted
child_process: name anonymous functions
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>
1 parent e552158 commit b5931e1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎lib/child_process.js‎

Lines changed: 5 additions & 5 deletions
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=functionfork(modulePath/* , args, options */){
6363

6464
// Get options and args arguments.
6565
varexecArgv;
@@ -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
varp=newPipe(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=functionexec(command/* , options, callback */){
147147
varopts=normalizeExecArgs.apply(null,arguments);
148148
returnexports.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=functionexecFile(file/* , args, options, callback */){
176176
varargs=[];
177177
varcallback;
178178
varoptions={
@@ -511,7 +511,7 @@ function normalizeSpawnArguments(file, args, options) {
511511
}
512512

513513

514-
varspawn=exports.spawn=function(/* file, args, options */){
514+
varspawn=exports.spawn=functionspawn(/* file, args, options */){
515515
varopts=normalizeSpawnArguments.apply(null,arguments);
516516
varoptions=opts.options;
517517
varchild=newChildProcess();

0 commit comments

Comments
 (0)