blob: 755885791508cd27393c27f024929f9a4d022727 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// frame.environment is a Debugger.Environment object
var g = newGlobal()
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();
|