We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Parse following code:
class ClassWithStaticMethod { static staticProperty = 'someValue'; }
The code fails to parse, this can be reproduced using https://esprima.org/demo/parse.html
The error is:
Error: Line 2: Unexpected token =
The code is extracted from example https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/static
The text was updated successfully, but these errors were encountered:
should work in esprima-next: https://github.com/node-projects/esprima-next
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
Parse following code:
The code fails to parse, this can be reproduced using https://esprima.org/demo/parse.html
Actual output
The error is:
Relevant references
The code is extracted from example https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/static
The text was updated successfully, but these errors were encountered: