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)
Core
JavaScript Engine
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";
Comment 1•11 years ago
|
||
Confirmed.
Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Comment 2•10 years ago
|
||
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"
Comment 3•10 years ago
|
||
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.
Description
•