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
The following should be legal but throws an error when objectLiteralShorthandMethods is enabled:
objectLiteralShorthandMethods
var x = { "foo"() { return bar; } };
The text was updated successfully, but these errors were encountered:
Working on this.
Sorry, something went wrong.
In the course of working on this issue, I found several addition problems:
First, this is legal but is throwing an error:
var x = { get(){} }; var x = { set(){} };
Also, this is parsing fine but should throw an error:
var x = { method() 43 };
I'm adding a lot more tests for properties as part of this.
Fix: Parsing issues with property methods (fixes #21)
e34fcd4
5f6242c
Merge pull request #22 from eslint/issue21
0f7ee6e
No branches or pull requests
The following should be legal but throws an error when
objectLiteralShorthandMethods
is enabled:The text was updated successfully, but these errors were encountered: