diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-10-30 13:13:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 20:13:32 +0000 |
commit | a346071dd2bd822a7c2abcb187406efe7d1d1471 (patch) | |
tree | 4b6a781865d462e86794fb992ed55339bed92327 /ext | |
parent | 5f5ac4063142c6c411486581f2f26cf51a32d7e3 (diff) |
fix(ext/node): return `this` from `http.Server.ref/unref()` (#26647)
Fixes https://github.com/denoland/deno/issues/26642
Diffstat (limited to 'ext')
-rw-r--r-- | ext/node/polyfills/http.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts index e8a189f70..9a920adee 100644 --- a/ext/node/polyfills/http.ts +++ b/ext/node/polyfills/http.ts @@ -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 { |