Source code

Revision control

Copy as Markdown

Other Tools

// frame.environment is a Debugger.Environment object
var g = newGlobal({newCompartment: true})
var dbg = Debugger(g);
g.h = function () {
assertEq(dbg.getNewestFrame().environment instanceof Debugger.Environment, true);
};
g.eval("h()");
g.evaluate("h()");
g.eval("eval('h()')");
g.eval("function f() { h(); }");
g.f();