summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1363233.js
blob: feacc65aff2cc534114485d919824699ca964d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| error: SyntaxError;
g = newGlobal({newCompartment: true});
dbg = new Debugger;
setInterruptCallback(function () {
    dbg.addDebuggee(g);
    dbg.getNewestFrame();
    return true;
});
g.eval("" + function f() {
    for (var i = 0; i < 1; evaluate("class h { constructor() {} }")) {
        interruptIf(1);
    }
});
g.f();