-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
let default
results in keyword let
being reported as reserved
#313
Comments
What version of Espree are you using? This has been fixed a long time ago. Here's the related issue: #149 |
@ilyavolodin I think #149 might be a different issue. |
I have 3.3.2 installed. Looks like that's the latest. |
Ah, sorry, @not-an-aardvark is correct. I misread the issue. I think this would be an issue upstream in Acorn. |
Opened a new issue in Acorn repo: acornjs/acorn#544 🎉 Feel free to close this unless you would like to keep track of this. Thanks! |
Closing this as it looks like this was fixed upstream. |
The following code:
Results in the following error:
SyntaxError: The keyword 'let' is reserved
Expected behaviour: I would have expected to see the
default
being reported as reserved keyword, notlet
.When
sourceType: 'script'
or when I useconst
orvar
instead oflet
, the error seems to match my expectations by reporting the following:SyntaxError: Unexpected token default
The text was updated successfully, but these errors were encountered: