Closed Bug 488690 Opened 16 years ago Closed 16 years ago

"Assertion failure: dn->pn_defn, at ../jsemit.cpp"

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9.2a1

People

(Reporter: gkw, Assigned: brendan)

References

Details

(4 keywords, Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file)

for each (let NaN in [x]) for(let x = (x for ([] in false)) in false); asserts dbg js shell without -j at Assertion failure: dn->pn_defn, at ../jsemit.cpp:1946 autoBisect shows this is probably related to bug 488015 : The first bad revision is: changeset: 27205:78a21b8efe1b user: Brendan Eich date: Wed Apr 15 01:57:13 2009 -0700 summary: Bug 488015 - Crash [@ js_GetUpvar ] (also bogus JS errors, also probably Crash [@js_Interpret]) (future r=mrbkap, see bug).
Flags: blocking1.9.1?
Does this block b4 if it's fallout from the upvar fix?
I'll fix it. /be
Assignee: general → brendan
Status: NEW → ASSIGNED
OS: Mac OS X → All
Priority: -- → P1
Hardware: x86 → All
Target Milestone: --- → mozilla1.9.1b4
Flags: blocking1.9.1? → blocking1.9.1+
Blocks: 488848
eval("(function(){\ let (x = x.prototype ((\ x for each (NaN in [])\ )\ [function(){}]\ )) {}\ })()"); asserts debug js shell without -j in a similar way - Assertion failure: pn_defn, at ../jsparse.h:654 I'm guessing this is the same bug, else a new one should be filed.
Gary: generator expressions in let binding constructs should not be filed as new bugs. We have enough on file! :-/ /be
Attached patch fixSplinter Review
This logic was just wrong: placeholders starting before the comprehension expr must be split. It also needed consolidation. /be
Attachment #373747 - Flags: review?(mrbkap)
Attachment #373747 - Flags: review?(mrbkap) → review+
Whiteboard: fixed-in-tracemonkey
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Flags: in-testsuite?
Verified fixed with given testcases and the following debug builds: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2a1pre) Gecko/20090522 Minefield/3.6a1pre ID:20090522133810 Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1pre) Gecko/20090522 Shiretoko/3.5pre ID:20090522153422
Status: RESOLVED → VERIFIED
Target Milestone: mozilla1.9.1b4 → mozilla1.9.2a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: