We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.1.42
Microsoft Windows NT 10.0.19045.0 x64
(install bun)
Save as test.js:
test.js
import { createWriteStream } from "fs"; const stream = createWriteStream("a.txt"); const buffer = Buffer.from("Hello, world!"); stream.write(buffer, () => { stream.end(); }); stream.addListener("close", () => { console.log("close listener called"); }); console.log("close");
Run:
bun run test.js
close close listener called
(node.js)
close
(bun)
Probably related: #4241, #6058
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
1.1.42
What platform is your computer?
Microsoft Windows NT 10.0.19045.0 x64
What steps can reproduce the bug?
(install bun)
Save as
test.js
:Run:
What is the expected behavior?
(node.js)
What do you see instead?
(bun)
Additional information
Probably related: #4241, #6058
The text was updated successfully, but these errors were encountered: