summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/DebuggeeWouldRun-03.js
blob: e6c522c485560afc058edfddf5e8d7428e4a66f1 (plain)
1
2
3
4
5
6
7
8
9
// Bug 1250190: Shouldn't crash. |jit-test| error: yadda

var g = newGlobal({newCompartment: true});
var dbg = new Debugger(g);
dbg.onNewGlobalObject = function () {
  dbg.onNewGlobalObject = function () { throw "yadda"; };
  newGlobal({newCompartment: true});
}
newGlobal({newCompartment: true});