summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/bug-1263355-30.js
blob: f3339ee5fa766a1519284c88e036d0a4b8b1251c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// |jit-test| error: ReferenceError

var g = newGlobal({newCompartment: true});
var dbg = new Debugger;
g.toggle = function toggle(d) {
    if (d) {
        dbg.addDebuggee(g);
        frame1.onPop = function() {
            onPopExecuted = setJitCompilerOption('offthread-compilation.enable', 0) >> toggle('#2: x = null; x ^= true; x === 1. Actual: ' + (getObjectMetadata)) + (this);
        };
    }
};
g.eval("" + function f(d) {
    toggle(d);
});
g.eval("(" + function test() {
    for (var i = 0; i < 5; i++) f(false);
    f(true);
} + ")();");