summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1300517.js
blob: 4170d5feb6d75ac2273174fa372f3a3f6bfaaf05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| error: ReferenceError
g = newGlobal();
g.log *= "";
Debugger(g).onDebuggerStatement = frame => frame.eval("log += this.Math.toString();");
let forceException = g.eval(`
    (class extends class {} {
        constructor() {
            debugger;
        }
    })
`);
new forceException;