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)

defect
Not set
minor

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 ;)
OS: Mac OS X → All
Hardware: x86 → All
Assignee: general → nobody
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.