Source code
Revision control
Copy as Markdown
Other Tools
// |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;