Opened 11 years ago

Closed 8 years ago

#6105 closed defect (wontfix)

Compressor breaks "FOR EACH" loops

Reported by: guest Owned by: Richard Backhouse
Priority: low Milestone: future
Component: ShrinkSafe Version: 1.0
Keywords: compressor rhino Cc:
Blocked By: Blocking:

Description (last modified by Adam Peller)

The compressor does not handle "for each ( var in list)" loops correctly.

It replaces "for each(" with "foreach("

I've taken a look at the rhino code and it does some checkings for this (on the original rhino code).

Look for isForEach in Parser.java to get an idea.

Change History (5)

comment:1 Changed 11 years ago by Adam Peller

Component: BuildToolsShrinkSafe
Owner: changed from James Burke to alex

not sure what version of JS this is, but it's clearly not something we use

comment:2 Changed 11 years ago by bill

Milestone: 1.2

Move all milestone 1.1 tickets to 1.2, except for reopened tickets and tickets opened after 1.1RC1 was released.

comment:3 Changed 11 years ago by Adam Peller

Description: modified (diff)
Milestone: 1.2future
Priority: normallow

This is a Mozilla-specific extension (Javascript 1.6) which Rhino supports.

comment:4 Changed 10 years ago by Adam Peller

Owner: changed from alex to Richard Backhouse

comment:5 Changed 8 years ago by ben hockey

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.