summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1177778.js
blob: 155763f3a2593670d5b2540fec74eb37ab92eed1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| skip-if: !('setGCCallback' in this)

setGCCallback({
    action: "majorGC",
    phases: "both"
});
var g = newGlobal({newCompartment: true});
var dbg = new Debugger;
var gw = dbg.addDebuggee(g);
g.eval("function h() { debugger; }");
dbg.onDebuggerStatement = function(hframe) {
    var env = hframe.older.environment;
};
g.eval("h();");