summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug-1240090.js
blob: 3b9ea3d08e89908b5abbe837334abb7550411dac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
gczeal(2);
g = newGlobal({newCompartment: true});
dbg = Debugger(g);
dbg.onNewScript = function() { return function() { return this; } };
schedulegc(10);
g.evaluate("function one() {}", { forceFullParse: true });
g.evaluate(`
           function target () {}
           function two2() {}
           `, { forceFullParse: true });
g.evaluate(`
           function three1() {}
           function three2() {}
           function three3() {}
           `, { forceFullParse: true });
dbg.memory.takeCensus({
  breakdown: {
    by: "coarseType",
    scripts: {
      by: "filename"
    }
  }
});