aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar MichaƂ Warda <michalwarda@users.noreply.github.com> 2023-02-12 13:37:28 +0100
committerGravatar GitHub <noreply@github.com> 2023-02-12 04:37:28 -0800
commitcc214baacf93c4cf4b16cb23d46b465536417614 (patch)
tree358aa39e9c19bd65b2e7862b35134ef455eed894 /src
parent83473c60df3b7ff4c2326573aa8532b636de4b4e (diff)
downloadbun-cc214baacf93c4cf4b16cb23d46b465536417614.tar.gz
bun-cc214baacf93c4cf4b16cb23d46b465536417614.tar.zst
bun-cc214baacf93c4cf4b16cb23d46b465536417614.zip
Return server on listen (#2057)
Diffstat (limited to 'src')
-rw-r--r--src/bun.js/http.exports.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bun.js/http.exports.js b/src/bun.js/http.exports.js
index 00e2c2dc9..59e2d3483 100644
--- a/src/bun.js/http.exports.js
+++ b/src/bun.js/http.exports.js
@@ -289,6 +289,8 @@ export class Server extends EventEmitter {
}
this.emit("error", err);
}
+
+ return this;
}
}