Closed Bug 632047 Opened 13 years ago Closed 9 years ago

Reflect.parse("for ([a,b] in obj);") sets .each to true when version is JS1.7

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1083498

People

(Reporter: jorendorff, Unassigned)

Details

(Whiteboard: reflect-parse)

This might be the lowest-priority bug I have ever filed.

  assertEq(Reflect.parse("for ([a,b] in obj) ;").body[0].each, false);  //PASS
  version(170);
  assertEq(Reflect.parse("for ([a,b] in obj) ;").body[0].each, false);  //FAIL

In JS1.7 only, `for ([a, b] in obj)` means something different than in any other version of the language, and this is tripping up Reflect.parse.
Whiteboard: reflect-parse
Assignee: general → nobody
JS1.7 destructuring for-in was removed in bug 1083498.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.