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
It seems that getters and setters with the same name are being confused for the same property. The error message is only shown in strict mode.
For example, given the following code in a js2-mode buffer:
js2-mode
'use strict'; class X { get x() { } set x(val) { } }
The x in set x(val) { } will be highlighted red, and it will show the message:
x
set x(val) { }
Property 'x' already defined in this object literal.
The text was updated successfully, but these errors were encountered:
Thanks for the report.
@jacksonrayhamilton Could you check it out?
Sorry, something went wrong.
Sure, I'll take a look soon.
Awesome, thanks guys!
No branches or pull requests
It seems that getters and setters with the same name are being confused for the same property. The error message is only shown in strict mode.
For example, given the following code in a
js2-mode
buffer:The
x
inset x(val) { }
will be highlighted red, and it will show the message:Property 'x' already defined in this object literal.
The text was updated successfully, but these errors were encountered: