summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Frame-eval-15.js
blob: 0f0843a5d43e4035efebc8c41375b3f6412736a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var g = newGlobal();
var dbg = new Debugger(g);

g.eval("function h() { debugger }");
g.eval("function f() { h() }");
g.blah = 42;
dbg.onDebuggerStatement = function(frame) {
    frame.older.eval("var blah = 43");
    frame.older.eval("blah = 44");
    assertEq(frame.older.environment.getVariable("blah"), 44);
}
g.f();
assertEq(g.blah, 42);