Closed Bug 945377 Opened 11 years ago Closed 10 years ago

for (x in generator()) should not call the generator's .next() method

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1012480

People

(Reporter: jorendorff, Unassigned)

Details

This test fails. Should pass per ES6. function* gen() { yield 1; } for (x in gen()) throw "FAIL";
Confirmed.
Assignee: general → nobody
What is worse is that it's a race condition. We never get to "PASS" function* gen() { yield 1; } for (x in gen()){} throw "PASS"
Sorry, I had overlooked this. This is the same bug as bug 1012480, and it's already fixed on mozilla-beta (34).
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.