summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/Debugger-findScripts-19.js
blob: 46021a0bbc57c3e056916cf2efabd54a16c19cc7 (plain)
1
2
3
4
5
var g = newGlobal({newCompartment: true});
var dbg = new Debugger(g);
try { g.eval('function drag(ev) {'); } catch (ex) { }
for (s of dbg.findScripts())
  s.lineCount;