-
Notifications
You must be signed in to change notification settings - Fork 146
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
Generator function causing JS_SYNTAX_ERROR #2108
Generator function causing JS_SYNTAX_ERROR #2108
Comments
Hm.. I repeated the test wih latest version and the error is gone: git clone https://github.com/mozilla/libdweb.git
cd libdweb && git checkout fbff435b33542b02bc35c0bb8c27bc203e6d4e6e
cd demo/protocol && npx [email protected] . Does it mean generators were added after |
Correct. There were quite a few updates after 1.0.0 even that added support for many more recent JS features (e.g generators like you described, I'm closing this in favor of mozilla/web-ext#1326 |
Describe the problem and steps to reproduce it:
Attempted to validate an extension whose background .js had generator function:
How to reproduce
What happened?
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:
Examples of use of generator functions in browser extensions:
The text was updated successfully, but these errors were encountered: