1 2 3 4 5 6 7
var g = newGlobal(); var dbg = Debugger(g); dbg.onNewScript = function (s) { throw new Error(); }; dbg.uncaughtExceptionHook = function () {} g.eval("2 * 3");