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