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
When trying to parse the example code from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#public_field_declarations Esprima fails with Error: Line 3: Unexpected token =
Error: Line 3: Unexpected token =
var esprima = require('nightly-esprima'); // installed version 2021.8.30 var program = ` class Rectangle { height = 0; width; constructor(height, width) { this.height = height; this.width = width; } } `; esprima.parseScript(program);
tested using Node.js v14.18.1
The text was updated successfully, but these errors were encountered:
Looks like one of the waiting pull requests seem to already cover this case, because when I switch to esprima-next I don't get an error.
Sorry, something went wrong.
@jpstotz yes, I fixed this in my fork, cause there seems to be no move forward here...
No branches or pull requests
When trying to parse the example code from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#public_field_declarations Esprima fails with
Error: Line 3: Unexpected token =
tested using Node.js v14.18.1
The text was updated successfully, but these errors were encountered: