Skip to content
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

There is a JavaScript syntax error. In optional chaining #3085

Open
DrElvis opened this issue Mar 22, 2020 · 2 comments
Open

There is a JavaScript syntax error. In optional chaining #3085

DrElvis opened this issue Mar 22, 2020 · 2 comments

Comments

@DrElvis
Copy link

@DrElvis DrElvis commented Mar 22, 2020

I load the new version of the addon on https://addons.mozilla.org/, but I get a validation error:

There is a JavaScript syntax error in your code; validation cannot continue on this file.

swears at this line of code:
arr.find(n => n.values.includes(ee.toString()))?.action();

namely the question mark.
however, the use of this functionality is described on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining

@DrElvis

This comment has been minimized.

Copy link
Author

@DrElvis DrElvis commented Mar 28, 2020

I can`t update my extention :(

@jvillalobos

This comment has been minimized.

Copy link
Member

@jvillalobos jvillalobos commented Mar 30, 2020

This is probably related to #2498 and other similar issues. There's some recent JS syntax that the linter doesn't support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.