Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b5931e1

Browse filesBrowse files
SerayaErynMylesBorins
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
Copy full SHA for b5931e1

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎lib/child_process.js‎

Copy file name to clipboardExpand all lines: lib/child_process.js
+5-5Lines 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 = 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.