mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
child_process: name anonymous functions
Refs: https://github.com/nodejs/node/issues/8913 PR-URL: https://github.com/nodejs/node/pull/20399 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
committed by
Trivikram Kamat
parent
482b662cb1
commit
c493b98b0b
@@ -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;
|
||||
@@ -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);
|
||||
@@ -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,
|
||||
@@ -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 = {
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user