aboutsummaryrefslogtreecommitdiff
path: root/src/js/node/http.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/node/http.ts')
-rw-r--r--src/js/node/http.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/node/http.ts b/src/js/node/http.ts
index 77f8c55de..c905b97a1 100644
--- a/src/js/node/http.ts
+++ b/src/js/node/http.ts
@@ -136,7 +136,7 @@ var FakeSocket = class Socket extends Duplex {
address() {
// Call server.requestIP() without doing any propety getter twice.
var internalData;
- return (this.#address ??= (internalData = this[kInternalSocketData])[0].requestIP(internalData[2]));
+ return (this.#address ??= (internalData = this[kInternalSocketData])[0].requestIP(internalData[2]) ?? {});
}
get bufferSize() {