-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
console.clear is not synchronous #3532
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Steps to Reproduce
test.js
deno test.js
Observed Behaivor
Program exits,
Hello World
is not visible in the terminal. I see a flash where it looks like it may be printed but then cleared a split second later.Expected Behaivor
Because
console.log
is invoked afterconsole.clear
, I would expect the terminal to be cleared and then printHello World
, so that the text is visible after the program exits. I executed an equivalent test in Node, FF console, and Chrome console and got this behavior (except that the browsers print the messageConsole was cleared.
; I'm thankful deno doesn't).Notes
I believe this may be an issue with synchronicity because I can "fix" it by doing...
The text was updated successfully, but these errors were encountered: