Source code

Revision control

Copy as Markdown

Other Tools

// |jit-test| error: ReferenceError
g = newGlobal({newCompartment: true});
dbg = Debugger(g);
hits = 0;
dbg.onNewScript = function () { return 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()");