Closed Bug 477581 Opened 15 years ago Closed 15 years ago

"Assertion failure: !JSVAL_IS_PRIMITIVE(regs.sp[-2]), at ../jsinterp.cpp:3237" with generator on trace

Categories

(Core :: JavaScript Engine, defect, P1)

Other Branch
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jorendorff, Assigned: jorendorff)

Details

(Keywords: verified1.9.1, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

Probably a regression from bug 462027.

function g() { yield 2; }
var iterables = [[1], [], [], [], g()];
for (let i = 0; i < iterables.length; i++)
    for each (let j in iterables[i])
        ;
Flags: blocking1.9.1?
Attached patch v1Splinter Review
I don't know what I was thinking adding the check for GeneratorClass there.

There are two calls to js_LeaveTrace in generator_op, both with blame=me no doubt; the second is of course redundant.
Attachment #361249 - Flags: review?(brendan)
Comment on attachment 361249 [details] [diff] [review]
v1

Who reviewed that patch? :-P

Thanks for cleaning this up.

/be
Attachment #361249 - Flags: review?(brendan) → review+
Want this in 1.9.1 ASAP.

/be
Flags: blocking1.9.1? → blocking1.9.1+
Priority: -- → P1
Pushed earlier today.

http://hg.mozilla.org/tracemonkey/rev/87734acac558
Whiteboard: fixed-in-tracemonkey
http://hg.mozilla.org/mozilla-central/rev/87734acac558
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
js1_8/regress/regress-477581.js
v 1.9.1, 1.9.2
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: