summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1108159.js
blob: d1a84c7bea2a5516fbedf5d8e350d3ba2425552b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| slow

if (helperThreadCount() == 0)
  quit(0);

var s = '';
for (var i = 0; i < 70000; i++)
 {
    s += 'function x' + i + '() { x' + i + '(); }\n';
}
evaluate(s);
var g = newGlobal();
(new Debugger).addDebuggee(g);
g.offThreadCompileScript('debugger;',{});
g.runOffThreadScript();