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