Ticket #159 (new defect)

Opened 1 year ago

parser: syntax for array comprehensions not implemented

Reported by: lth Assigned to: jeffdyer
Type: defect Priority: major
Milestone: Component: RefImpl
Version: 4 Keywords:
Cc: brendan

Description

>> [i * i for (i in [1,2,3,4,5])]
**ERROR** ParseError: unknown token in arrayLiteral

See bottom of https://intranet.mozilla.org/ECMA/wiki/doku.php?id=proposals:iterators_and_generators

(IMO the array comprehensions should be broken out as a separate proposal, but.)

Attachments

Note: See TracTickets for help on using tickets.