Skip to content

Commit cff8006

Browse files
LiviaMedeirosaduh95
authored andcommitted
child_process: give names to ChildProcess functions
PR-URL: #58370 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: Jake Yuesong Li <[email protected]>
1 parent 5b6ced3 commit cff8006

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/internal/child_process.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ function closePendingHandle(target) {
351351
}
352352

353353

354-
ChildProcess.prototype.spawn = function(options) {
354+
ChildProcess.prototype.spawn = function spawn(options) {
355355
let i = 0;
356356

357357
validateObject(options, 'options');
@@ -489,7 +489,7 @@ function onSpawnNT(self) {
489489
}
490490

491491

492-
ChildProcess.prototype.kill = function(sig) {
492+
ChildProcess.prototype.kill = function kill(sig) {
493493

494494
const signal = sig === 0 ? sig :
495495
convertToValidSignal(sig === undefined ? 'SIGTERM' : sig);
@@ -523,12 +523,12 @@ ChildProcess.prototype[SymbolDispose] = function() {
523523
};
524524

525525

526-
ChildProcess.prototype.ref = function() {
526+
ChildProcess.prototype.ref = function ref() {
527527
if (this._handle) this._handle.ref();
528528
};
529529

530530

531-
ChildProcess.prototype.unref = function() {
531+
ChildProcess.prototype.unref = function unref() {
532532
if (this._handle) this._handle.unref();
533533
};
534534

0 commit comments

Comments
 (0)