blob: 7ea07a0c74668e6184898eeaa48830161ee82689 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// |jit-test| error: ReferenceError
g = newGlobal({newCompartment: true});
g.log *= "";
Debugger(g).onDebuggerStatement = frame => frame.eval("log += this.Math.toString();");
let forceException = g.eval(`
(class extends class {} {
constructor() {
debugger;
}
})
`);
new forceException;
|