Closed Bug 349962 Opened 18 years ago Closed 18 years ago

Assertion: "OBJ_GET_CLASS(cx, parent) != &js_BlockClass" in jsinterp.c

Categories

(Core :: JavaScript Engine, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: brendan)

Details

(Keywords: crash, testcase, verified1.8.1)

Attachments

(1 file)

Steps to reproduce:
  In a debug build,
  javascript:(function() { let z = (function () { function a() { } })(); })()

Result:
  Assertion failure: OBJ_GET_CLASS(cx, parent) != &js_BlockClass, 
  at js/src/jsinterp.c:5001
These assertions went in with the "first big wave of js1.7 changes", thanks to me, but I don't recall their rationale.  They are obviously wrong in light of cloned block objects on the scope chain.  I'm looking for an r=mrbkap to check this debug only change into trunk and 1.8 branch.

/be
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #236191 - Flags: review?(mrbkap)
Attachment #236191 - Flags: review?(mrbkap) → review+
Fixed on trunk and 1.8 branch.

/be
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Checking in regress-349962.js;
/cvsroot/mozilla/js/tests/js1_7/block/regress-349962.js,v  <--  regress-349962.js
initial revision: 1.1
Flags: in-testsuite+
verified fixed 1.8 1.9 20060901 windows/mac*/linux
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: