diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-07-25 09:17:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-25 07:17:53 +0000 |
commit | bd79baea5e6734ab70802cd2c2532a491a987ff7 (patch) | |
tree | e1b2ddd34097d62a93ab246a42353850245b9868 /ext/node | |
parent | 3d3590063954dd30c1ebea02aad136878eeee04e (diff) |
fix(node): add writable and readable fields to FakeSocket (#19931)
Closes https://github.com/denoland/deno/issues/19927
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/polyfills/http.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts index bba11cdc1..b34c45f9c 100644 --- a/ext/node/polyfills/http.ts +++ b/ext/node/polyfills/http.ts @@ -279,6 +279,8 @@ class FakeSocket extends EventEmitter { this.remoteAddress = opts.hostname; this.remotePort = opts.port; this.encrypted = opts.encrypted; + this.writable = true; + this.readable = true; } setKeepAlive() {} |