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
Disallow "let" as name at lexical bindings #10099
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/10953/ |
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/10948/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a test for const let = {}
and let let = {}
?
@nicolo-ribaudo Are there anything else that should be changed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
I'm surprised that this didn't change any parser Test262 result |
Spec: https://www.ecma-international.org/ecma-262/9.0/#sec-let-and-const-declarations-static-semantics-early-errors