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
ES spec violation #7993
Comments
Hey @user-982634! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
Closing, out of scope for now. |
@danez Is this fixed by your context PR? |
I do not think this is valid. I tried this in acorn, flow, esprima, chrome and node. All parsers fail the same way.
|
@danez I'm sorry to disapoint you, but this is valid syntax according to the latest EcmaScript specification. I sincerely have no idea how you are testing the script. It works in Chrome, Node.js and Firefox. Probably you concatenated the two lines into single line. The key is that the new line is necessary. Also see this online Node.js interpreter that properly parses this. |
Ohh, I'm not sure what happened but i was testing this:
with curly brackets yes it will be fixed with #8972 |
Bug Report
Current Behavior
The parser throws a SyntaxError
Input Code
This is a valid JavaScript code according to the latest ES standard:
Expected behavior/code
No SyntaxError should be thrown
Babel Configuration (.babelrc, package.json, cli command)
Not sure, I'm using the online babel parser
Possible Solution
’\_(ツ)_/‘
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: