Closed
Bug 380535
Opened 18 years ago
Closed 9 years ago
Misleading error message "missing ] after element list" with array comprehension
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jruderman, Unassigned)
Details
(Keywords: testcase)
js> [i*i for(i in [0]), 5]
typein:9: SyntaxError: missing ] after element list:
typein:9: [i*i for(i in [0]), 5]
typein:9: ..................^
That's not an element list. If it were an element list, the comma would be allowed ;)
Updated•13 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Comment 1•9 years ago
|
||
No longer reproducible - Resolving as WFM.
js> [i*i for(i in [0]), 5]
typein:1:18 SyntaxError: missing ] after array comprehension:
typein:1:18 [i*i for(i in [0]), 5]
typein:1:18 ..................^
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•