child_process: give names to `ChildProcess` functions · nodejs/node@ef9ecbe

@@ -352,7 +352,7 @@ function closePendingHandle(target) {

352352

}

353353354354355-

ChildProcess.prototype.spawn = function(options) {

355+

ChildProcess.prototype.spawn = function spawn(options) {

356356

let i = 0;

357357358358

validateObject(options, 'options');

@@ -490,7 +490,7 @@ function onSpawnNT(self) {

490490

}

491491492492493-

ChildProcess.prototype.kill = function(sig) {

493+

ChildProcess.prototype.kill = function kill(sig) {

494494495495

const signal = sig === 0 ? sig :

496496

convertToValidSignal(sig === undefined ? 'SIGTERM' : sig);

@@ -524,12 +524,12 @@ ChildProcess.prototype[SymbolDispose] = function() {

524524

};

525525526526527-

ChildProcess.prototype.ref = function() {

527+

ChildProcess.prototype.ref = function ref() {

528528

if (this._handle) this._handle.ref();

529529

};

530530531531532-

ChildProcess.prototype.unref = function() {

532+

ChildProcess.prototype.unref = function unref() {

533533

if (this._handle) this._handle.unref();

534534

};

535535