Closed Bug 663910 Opened 9 years ago Closed 9 years ago

TI: Assertion failure: obj, at ../jsval.h:720

Categories

(Core :: JavaScript Engine, defect, critical)

x86_64
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: decoder, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: assertion, testcase)

The following testcase asserts on TI revision f59a6cabfbd4 (run with -j -m -n -a), tested on 64 bit:


var otherGlobalSameCompartment = newGlobal("same-compartment");
eval = otherGlobalSameCompartment.eval;
doesNotNeedParens(1, "if (xx) { }");
needParens(2, "if (1, xx) { }");
function doesNotNeedParens(section, pat) {
    try {
        f = new Function
    } catch (e) {}
    roundTripTest(section, f)
}
function needParens(section, pat, exp) {
    var f, ft;
    roundTripTest(section, f, exp)
}
function roundTripTest(section, f, exp) {
    uf = "" + f
    var euf;
    try {
        euf = eval("(" + uf + ")")
    } catch (e) {} + euf
}
There was a path in the Eval stub (direct eval not actually calling the original eval function) where the result was not being monitored.

http://hg.mozilla.org/projects/jaegermonkey/rev/7eec66369bfa
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Blocks: 676763
A testcase for this bug was automatically identified at js/src/jit-test/tests/jaeger/bug663910.js.
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.