All users were logged out of Bugzilla on October 13th, 2018
The syntax for Array Comprehensions in ES6 is different from what's implemented in SpiderMonkey. The AssignmentExpression now comes at the end of comprehension, instead of the beginning. SpiderMonkey: > [x for (x of iter) if (cond)] ES6 > [for (x of iter) if (cond) x] See ES6 draft spec section 220.127.116.11. Reference: https://github.com/rwldrn/tc39-notes/blob/master/es6/2013-01/jan-31.md#comprehensionsgenerator-syntax
Summary: ES6 Array Comprehension syntax is different → ES6 Array/Generator Comprehension syntax is different
Summary: ES6 Array/Generator Comprehension syntax is different → ES6 Comprehension syntax is different
This applies to both Generator and Array Comprehensions.
Ooh, can we get rid of that arrayComprehensionTail "I thought this parse tree was in this function, but really it's in this other function" craziness?
Is this a DUP of bug 979865 ?
(In reply to David Bruant from comment #4) > Is this a DUP of bug 979865 ? Indeed. I did search for dups, but it seems my keyword-fu is weak :P
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 979865
You need to log in before you can comment on or make changes to this bug.