-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
await
an expression that ends with at least two semicolons returns undefined
#39932
Labels
repl
Issues and PRs related to the REPL subsystem.
Comments
Mesteery
added
repl
Issues and PRs related to the REPL subsystem.
confirmed-bug
Issues with confirmed bugs.
labels
Aug 29, 2021
Mesteery
changed the title
Aug 29, 2021
undefined
is returned when an expression ends with more than one ;
with await
await
an expression that ends with at least two ;
returns undefined
Mesteery
changed the title
Aug 29, 2021
await
an expression that ends with at least two ;
returns undefined
await
an expression that ends with at least two semicolons returns undefined
This seems normal, acorn returns an EmptyStatement for the extra(s) |
Mesteery
added a commit
to Mesteery/node
that referenced
this issue
Sep 23, 2021
Mesteery
added a commit
to Mesteery/node
that referenced
this issue
Sep 23, 2021
targos
pushed a commit
that referenced
this issue
Oct 4, 2021
Fixes: #39932 PR-URL: #40194 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
16.8.0
Platform
No response
Subsystem
repl
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
with the top level await, and at least 2 semicolons.
What is the expected behavior?
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: