You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import*asreadlinefrom'node:readline/promises';import{stdinasinput,stdoutasoutput}from'node:process';constrl=readline.createInterface({ input, output });constanswer=awaitrl.question('What do you think of Node.js? ');console.log(`Thank you for your valuable feedback: ${answer}`);rl.close();
What is the expected behavior?
Program exits upon completion
What do you see instead?
Program hangs
Additional information
Obviously prompt is a viable alternative, but I'm reporting this as Node compatibility is a goal.
What version of Bun is running?
0.6.13
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
Run the example from the node readline docs: https://nodejs.org/api/readline.html
What is the expected behavior?
Program exits upon completion
What do you see instead?
Program hangs
Additional information
Obviously
prompt
is a viable alternative, but I'm reporting this as Node compatibility is a goal.See https://fly.io/blog/flydotio-heart-bun/ for more background.
The text was updated successfully, but these errors were encountered: