-
Notifications
You must be signed in to change notification settings - Fork 787
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
Feature request: Optional chaining operator #2112
Comments
We started using more ES6 syntax recently and also ran into the optional chaining failure. It guess we will have to be more selective until this is supported. |
we have had to move to nightly-esprima because of this |
it is not implemented (?) however I cannot understend why: ES6 shouldn't be handled? 57dc451 |
you can also try my esprima fork esprima-next |
Does that work with the Python bindings? |
don't know |
Object deconstruction like ... not support |
@sergey-v9 what is that |
@Nefcanto yes, it is the same, but bult from the latest version of the code in this repo from 2021 year (while the official last version was 4.0.1 from 2018 year) |
Steps to reproduce
Expected output
Some indication that this is optional chaining (if foo exists, it's the same as foo.bar, else it's undefined)
Actual output
"Unexpected token ."
Relevant references
https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#prod-OptionalExpression
This is supported in all major browsers and Node.js.
The text was updated successfully, but these errors were encountered: