Closed
Description
Describe the problem and steps to reproduce it:
Attempted to validate an extension whose background .js had generator function:
content: (async function * () {
// ...
How to reproduce
git clone https://github.com/mozilla/libdweb.git
cd libdweb && git checkout fbff435b33542b02bc35c0bb8c27bc203e6d4e6e
cd demo/protocol && npx [email protected] lint
What happened?
Code Message Description
JS_SYNTAX_ERROR JavaScript syntax error There is a JavaScript syntax error in your code; validation cannot continue on this file.
What did you expect to happen?
Firefox runs generators just fine. It guess function *
should be accepted?
I may be missing some background on this, but MDN support table is green:
Anything else we should know?
Versions:
"web-ext": "2.7.0" with "addons-linter": "1.0.0"
Examples of use of generator functions in browser extensions:
Metadata
Metadata
Assignees
Labels
No labels