There is a JavaScript syntax error in optional chaining

Hi!
I load the new version of the plugin, 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

Chrome did not give errors

The validator is currently lagging behind syntax features Firefox supports.

I would recommend filing an issue at https://github.com/mozilla/addons-linter/issues to make sure it is tracked.

1 Like

Thanks! Done. https://github.com/mozilla/addons-linter/issues/3085