oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.26k stars 2.69k forks source link

repl freezes after running alert() or confirm() #7590

Open telecter opened 9 months ago

telecter commented 9 months ago

What version of Bun is running?

1.0.16+800fb1290

What platform is your computer?

Darwin 23.2.0 arm64 arm

What steps can reproduce the bug?

When trying to read user input or display an alert, the repl freezes. This only occurs in the Bun repl and not when reading from a JS file.

$ bun repl
Welcome to Bun v1.0.16

> alert("hello, world!")
Hello world! [Enter]

*repl freezes*

What is the expected behavior?

The alert or confirmation is displayed, and when enter is pressed, returns back to the repl prompt.

What do you see instead?

The repl becomes unresponsive and the process or terminal has to be ended.

Additional information

This only occurs on the repl, and only with alert() or confirm(), not prompt().

thisislvca commented 9 months ago

+1