aboutsummaryrefslogtreecommitdiff
path: root/src/js/node
diff options
context:
space:
mode:
authorGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-10-04 21:28:23 -0700
committerGravatar GitHub <noreply@github.com> 2023-10-04 21:28:23 -0700
commit5da79a8366e74e921dbf752ba2a33b4308170b48 (patch)
tree8ae5e91012dafdf3fff95154baefbc8ad5107f75 /src/js/node
parentff88510e5f14d0d2443f50e867413f274e952dde (diff)
downloadbun-5da79a8366e74e921dbf752ba2a33b4308170b48.tar.gz
bun-5da79a8366e74e921dbf752ba2a33b4308170b48.tar.zst
bun-5da79a8366e74e921dbf752ba2a33b4308170b48.zip
Closes #6309 (#6310)
Diffstat (limited to 'src/js/node')
-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 c905b97a1..17dfc4040 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() {