Closed Bug 677593 Opened 13 years ago Closed 13 years ago

[jsdbg2] Assertion failure: (ptrBits & 0x7) == 0, at ../jsval.h:705

Categories

(Core :: JavaScript Engine, defect)

Other Branch
x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: decoder, Assigned: jorendorff)

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

The following code asserts on jsdbg2 branch (revision f189dd6316eb, options -j -m -a -d):


if (typeof assertThrowsInstanceOf === 'undefined') {
    var assertThrowsInstanceOf = function assertThrowsInstanceOf(f, ctor, msg) {
        try {
            f();
        } catch (exc) {
            if (exc instanceof ctor)
                return;
        }
    };
}
function check(val) {
    assertThrowsInstanceOf(function () { dbg.hasDebuggee( this ( ) ); }, TypeError);
    assertThrowsInstanceOf(function () { dbg.addDebuggee(val); }, TypeError);
    assertThrowsInstanceOf(function () { dbg.removeDebuggee(val); }, TypeError);
}
check(undefined);
var g = newGlobal('new-compartment');
var dbg = new Debugger;
var gobj = dbg.addDebuggee(g);
assertThrowsInstanceOf(function () { gobj.defineProperty( "\r\nb") ; }, TypeError);
Attached patch v1Splinter Review
Assignee: general → jorendorff
Attachment #551861 - Flags: review?(jimb)
Attachment #551861 - Flags: review?(jimb) → review+
http://hg.mozilla.org/users/jblandy_mozilla.com/jsdbg2/rev/cb0579abe353
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: