Closed Bug 678529 Opened 13 years ago Closed 12 years ago

[jsdbg2] Assertion failure: !args.rval().isPrimitive(), at jsinterp.cpp:679

Categories

(Core :: JavaScript Engine, defect)

Other Branch
x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: decoder, Unassigned)

Details

(Keywords: assertion, testcase)

The following code crashes on jsdbg2 branch (revision 48e43edc8834, options -j -m -a -d):


var g = newGlobal('new-compartment');
var dbg = Debugger(g);
dbg.onDebuggerStatement = function (stack) { return {return: 1234}; };
g.eval("function f() { debugger; return 'bad'; }");
assertEq(new g.f(), 1234);
This seems to have been fixed by this changeset:

changeset:   81371:4ecf595875a5
user:        Jim Blandy <jimb@mozilla.com>
date:        Sat Dec 03 18:51:30 2011 -0800
summary:     Bug 700070: Have stubs::AnyFrameEpilogue call the full ScriptEpilogue before StackFrame::functionEpilogue, not just ScriptDebugEpilogue after functionEpilogue. r=jorendorff
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Automatically extracted testcase for this bug was committed:

https://hg.mozilla.org/mozilla-central/rev/2e891e0db397
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.