Skip to content
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

REPL issue with Top Level Await #3029

Closed
kevinkassimo opened this issue Sep 26, 2019 · 1 comment
Closed

REPL issue with Top Level Await #3029

kevinkassimo opened this issue Sep 26, 2019 · 1 comment
Labels
repl related to the Read-Eval-Print-Loop functionality of Deno

Comments

@kevinkassimo
Copy link
Contributor

Top level await has unexpected results in the repl:

> console.log(await Deno.stat("."));
// Waits forever...

The cause of this is that feeding the above line to evalContext (plainly a binding to create script and eval under the current context) yields the surprising error SyntaxError: missing ) after argument list, thus REPL assumes that there needs more input and waits.

This might be an upstream issue of V8.

@bartlomieju bartlomieju added the repl related to the Read-Eval-Print-Loop functionality of Deno label Feb 24, 2020
@bartlomieju
Copy link
Member

Fixed in #7784

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repl related to the Read-Eval-Print-Loop functionality of Deno
Projects
None yet
Development

No branches or pull requests

2 participants