-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
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
readline node not working with async iterator syntax #2535
Comments
I'm actually just about done fixing this, the problem was our Related: #2187 |
when fix |
This works on bun 1.0.25: import { createReadStream } from "node:fs";
import { createInterface } from "node:readline/promises";
const stream = createReadStream('file.csv');
const rl = createInterface({ input: stream });
for await (const line of rl) {
console.log(line);
} Edit: Nope. Only reads 3 lines. |
It now appears to only read the first line. |
Confirmed in 1.0.26 |
This was fixed in Bun v1.1.0 |
What version of Bun is running?
0.5.8
What platform is your computer?
Darwin 22.4.0 x86_64 i386
What steps can reproduce the bug?
readline node not working with async iterator syntax while createReadStream dose
What is the expected behavior?
Should work just like with Node
What do you see instead?
Additional information
minimal snippet
The text was updated successfully, but these errors were encountered: