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) {
356356let i = 0;
357357358358validateObject(options, 'options');
@@ -490,7 +490,7 @@ function onSpawnNT(self) {
490490}
491491492492493-ChildProcess.prototype.kill = function(sig) {
493+ChildProcess.prototype.kill = function kill(sig) {
494494495495const signal = sig === 0 ? sig :
496496convertToValidSignal(sig === undefined ? 'SIGTERM' : sig);
@@ -524,12 +524,12 @@ ChildProcess.prototype[SymbolDispose] = function() {
524524};
525525526526527-ChildProcess.prototype.ref = function() {
527+ChildProcess.prototype.ref = function ref() {
528528if (this._handle) this._handle.ref();
529529};
530530531531532-ChildProcess.prototype.unref = function() {
532+ChildProcess.prototype.unref = function unref() {
533533if (this._handle) this._handle.unref();
534534};
535535