fix(ext/node): return this from http.Server.ref/unref() (#26647)

Fixes https://github.com/denoland/deno/issues/26642
This commit is contained in:
Nathan Whitaker 2024-10-30 13:13:32 -07:00 committed by GitHub
parent 5f5ac40631
commit a346071dd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1802,6 +1802,8 @@ export class ServerImpl extends EventEmitter {
this.#server.ref();
}
this.#unref = false;
return this;
}
unref() {
@ -1809,6 +1811,8 @@ export class ServerImpl extends EventEmitter {
this.#server.unref();
}
this.#unref = true;
return this;
}
close(cb?: (err?: Error) => void): this {