summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Script-getOffsetsCoverage-bug1233178.js
blob: 70753c8533933e22c0c8241d50049cacf1adf6ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
gczeal(2);
g = newGlobal({newCompartment: true});
dbg = Debugger(g);
function loop() {
  for (var i = 0; i < 10; i++)
    debugger;
}
g.eval(loop.toString());
dbg.onDebuggerStatement = function(f) {
  f.script.getOffsetsCoverage();
}
dbg.collectCoverageInfo = true;
g.eval("loop")();