summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1252464.js
blob: 48c6f8ec075dfe921409e1388593b7f0794b9ff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| error: ReferenceError

g = newGlobal();
dbg = Debugger(g);
hits = 0;
dbg.onNewScript = function () hits++;
assertEq(g.eval("eval('2 + 3')"), 5);
this.gczeal(hits,1);
dbg = Debugger(g);
g.h = function () {
  var env = dbg.getNewestFrame().environment;
  dbg =  0;
  assertThrowsInstanceOf;
}
g.eval("h()");