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

for-const-of loop causes syntax error #20231

Closed
saschanaz opened this issue Mar 7, 2018 · 2 comments
Closed

for-const-of loop causes syntax error #20231

saschanaz opened this issue Mar 7, 2018 · 2 comments

Comments

@saschanaz
Copy link
Contributor

@saschanaz saschanaz commented Mar 7, 2018

I heard servo uses older GeckoSpiderMonkey, but anyway:

for (const a of ['test passed']) a
// syntax error: missing = in const declaration

GeckoSpiderMonkey bug (fixed in 2016): https://bugzilla.mozilla.org/show_bug.cgi?id=1101653
Codepen: https://codepen.io/SaschaNaz/full/rJXELp/

This is causing web-platform-tests/wpt@280005e and w3c/webidl2.js#139 (comment).

@emilio
Copy link
Member

@emilio emilio commented Mar 7, 2018

Yeah, this is blocked on servo/mozjs#130

@saschanaz
Copy link
Contributor Author

@saschanaz saschanaz commented Jul 5, 2019

This works now.

@saschanaz saschanaz closed this Jul 5, 2019
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.