summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Frame-eval-15.js
blob: 3a452305ccd27e781fdf2ee53f93c2d03efca6fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
var g = newGlobal({newCompartment: true});
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);