summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1177778.js
blob: 4e70856c0326bb961ad4f155e7fe2dbcef3c6c30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
if (!("setGCCallback" in this))
    quit();

setGCCallback({
    action: "majorGC",
    phases: "both"
});
var g = newGlobal();
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();");