Closed
Bug 381742
Opened 17 years ago
Closed 15 years ago
Extra parens with genexp in "else if" condition
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jruderman, Unassigned)
Details
(Keywords: testcase)
js> (function () { if(x) { } else if (1 for (x in [])) {} }) function () { if (x) { } else if ((1 for (x in []))) { } }
Reporter | ||
Comment 1•15 years ago
|
||
The expression (1 for (x in [])) is treated as always-true now, so it doesn't appear in this decompilation at all. Seems reasonable to me!
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•