From ac7af3fa33d093d2ec1c8df79a126294e9cdfbc0 Mon Sep 17 00:00:00 2001 From: Kai Tamkun Date: Fri, 31 Jan 2025 17:03:20 -0800 Subject: [PATCH] Implement ClientRequest.writable --- src/js/node/http.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/node/http.ts b/src/js/node/http.ts index 308ab0bc8c..98af67135c 100644 --- a/src/js/node/http.ts +++ b/src/js/node/http.ts @@ -3031,6 +3031,10 @@ const ClientRequestPrototype = { set aborted(value) { this[abortedSymbol] = value; }, + + get writable() { + return !this[finishedSymbol]; + }, }; ClientRequest.prototype = ClientRequestPrototype;