Closed Bug 1053132 Opened 10 years ago Closed 9 years ago

stopping generators cause Firefox to freeze (unresponsive script dialog)

Categories

(Core :: JavaScript Engine, defect)

x86_64
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1012480
Tracking Status
firefox31 --- affected
firefox32 --- affected
firefox33 --- affected
firefox34 --- fixed
firefox-esr24 --- unaffected
firefox-esr31 --- affected

People

(Reporter: freddy, Unassigned)

References

Details

(Keywords: regression, reproducible)

Attachments

(1 file)

Code snippet:
> g= function* () { var x = 5; while (x < 3) { yield x--; } }; l=g(); for (element in l) { console.log(element) }


Tim Taubert (CCd) says this is relevant:
> Assertion failure: cx->iterValue.isMagic(JS_NO_ITER_VALUE), at 
 /Users/tim/workspace/mozilla-central/js/src/vm/Interpreter.cpp:434

I get this on release & nightly, Mac and Linux.
Seems to be dupe of bug 1012480.
  [x for (x in function*(){}())]

Need to backport to esr31?
Confirmed the patch for bug 1012480 fixes this, it's landed to mozilla34.
Exactly same patch is applicable to esr31,
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.

Attachment

General

Created:
Updated:
Size: