child_process: give names to ChildProcess functions

PR-URL: https://github.com/nodejs/node/pull/58370
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
This commit is contained in:
Livia Medeiros authored and Michaël Zasso committed 2025-05-31 13:23:25 +02:00
1 parent ddab63a323
commit ef9ecbe8a6
1 file changed
+4 -4
+4 -4
View File
@@ -352,7 +352,7 @@ function closePendingHandle(target) {
}
ChildProcess.prototype.spawn = function(options) {
ChildProcess.prototype.spawn = function spawn(options) {
let i = 0;
validateObject(options, 'options');
@@ -490,7 +490,7 @@ function onSpawnNT(self) {
}
ChildProcess.prototype.kill = function(sig) {
ChildProcess.prototype.kill = function kill(sig) {
const signal = sig === 0 ? sig :
convertToValidSignal(sig === undefined ? 'SIGTERM' : sig);
@@ -524,12 +524,12 @@ ChildProcess.prototype[SymbolDispose] = function() {
};
ChildProcess.prototype.ref = function() {
ChildProcess.prototype.ref = function ref() {
if (this._handle) this._handle.ref();
};
ChildProcess.prototype.unref = function() {
ChildProcess.prototype.unref = function unref() {
if (this._handle) this._handle.unref();
};