Compat with node:net server.listen(port, host, backlog, callback)
?
#4540
Labels
bug
Something isn't working
needs investigate
Needs to be investigated to find the root cause
node.js
Compatibility with Node.js APIs
What version of Bun is running?
0.8.1+16b4bf341acc0f4804f0b6bdf5298c180cd00366
What platform is your computer?
Linux 5.4.0-135-generic x86_64 x86_64
What steps can reproduce the bug?
Listening with
server.listen(port, host, backlog, callback)
(like we do) does not work when the package is bundled up withbun build --target node
. Removingbacklog
however works.Also I've noticed that,
bun run <entry-point>
works as-is (with thebacklog
arg) butbun build <entry-point> --target node
doesn't.What is the expected behavior?
Do not expect
bun bundle <nodejs-entry-point> --target node
to behave any differently tobun run <nodejs-entry-point>
What do you see instead?
The Bun process continues executing the rest of the code without reporting any error.
Additional information
Coincidentally, I see the same "bug" (?) with Deno, too.
The text was updated successfully, but these errors were encountered: