From bd79baea5e6734ab70802cd2c2532a491a987ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 25 Jul 2023 09:17:53 +0200 Subject: fix(node): add writable and readable fields to FakeSocket (#19931) Closes https://github.com/denoland/deno/issues/19927 --- ext/node/polyfills/http.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext') 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() {} -- cgit v1.2.3