Skip to content

Commit 8d603d5

Browse files
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 0e72f3b commit 8d603d5

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
@@ -352,7 +352,7 @@ function closePendingHandle(target) {
352352
}
353353

354354

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

358358
validateObject(options, 'options');
@@ -490,7 +490,7 @@ function onSpawnNT(self) {
490490
}
491491

492492

493-
ChildProcess.prototype.kill = function(sig) {
493+
ChildProcess.prototype.kill = function kill(sig) {
494494

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

526526

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

531531

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

0 commit comments

Comments
 (0)