New issue
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
JS_SYNTAX_ERROR from seemingly valid code #3673
Comments
Hi, is this the entire message? You should have a message about unsupported syntax, which is valid but not supported yet because not "fully standardized". |
My apologies, I should've included the description as well.
Is assigning static variables in this way not a standardized feature? |
Please see: #3062 |
Hmm, I see. So I basically just have to work around this for now then? |
Yes, unfortunately we don't have a good workaround for that. |
ATM, you have to define them outside the
|
Closing as duplicate of #3062. |
Describe the problem and steps to reproduce it:
I am trying to submit an update for my web extension but the validation fails due to this code:
You can reproduce it by including this code in a web extension.
What happened?
A
JS_SYNTAX_ERROR
is shown:This code works fine in Firefox and Chrome and seems valid by all accounts I can find but for some reason, the linter considers it invalid.
What did you expect to happen?
I would expect it to consider this valid.
Anything else we should know?
The full code of the class can be found in my repo here.
The text was updated successfully, but these errors were encountered: