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

confusing error message for compound assignment of undeclared variable #208

Open
mminea opened this issue Sep 21, 2021 · 0 comments
Open

Comments

@mminea
Copy link

mminea commented Sep 21, 2021

Writing x += 0; produces the uninformative error message
Line 0: unknown: path.node.loc is undefined
Writing x = 0; instead produces the friendly
Line 1: You must declare variable 'x' before assigning a value to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant