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
Esprima' UpdateExpression's argument is one of: ObjectExpression, ArrayExpression, MemberExpression, Identifier.
UpdateExpression
ObjectExpression
ArrayExpression
MemberExpression
Identifier
Consider behaviour of V8:
Should be: Argument of UpdateExpression is one of: Identifier, MemberExpression
esprima.parse('--[]') // or --{}, []--, (++[]), etc.
Expected "Invalid left-hand side expression in prefix operation"
{ "type": "UpdateExpression", "operator": "--", "argument": { "type": "ArrayExpression", "elements": [] }, "prefix": true }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Invalid UpdateExpression's arguments
Esprima'
UpdateExpression
's argument is one of:ObjectExpression
,ArrayExpression
,MemberExpression
,Identifier
.Consider behaviour of V8:
Should be:
Argument of
UpdateExpression
is one of:Identifier
,MemberExpression
Steps to reproduce
Expected output
Expected "Invalid left-hand side expression in prefix operation"
Actual output
Relevant references
The text was updated successfully, but these errors were encountered: