-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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
Async SyntaxErrors omit which line the error occurs on #25524
Labels
duplicate
Issues and PRs that are duplicates of other issues or PRs.
Comments
devsnek
added
the
duplicate
Issues and PRs that are duplicates of other issues or PRs.
label
Jan 15, 2019
Duplicate of #11865 |
It seems improved in V8 7.3:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notice in the following two examples, where
state
is erroneously redeclared, the "Sync Example", provides this (very useful!) information, which is not present in the Async Example:The "first" line of the stack shown in the async example is not the line on which the error occurred. Rather, it is the line that calls the function containing the error. Unfortunately this can be anywhere, so is completely unhelpful in fixing the problem.
Sync Example:
sync_test.js
Async Example
async_test.js
The text was updated successfully, but these errors were encountered: