summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/DebuggeeWouldRun-04.js
blob: 684f3f8e7e984228e498593fddce441be7f1ce7f (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.onNewScript = function () {
  dbg.onNewScript = function () { throw "yadda"; };
  g.Function("noodles;");
}
g.Function("poodles;");