Open OndrejSpanel opened 2 years ago
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
should work in esprima-next: https://github.com/node-projects/esprima-next
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