summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/bug1108159.js
blob: 916b759f8856abb73758f341670f66f11b9d5494 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| slow; skip-if: helperThreadCount() === 0

var s = '';
for (var i = 0; i < 70000; i++)
 {
    s += 'function x' + i + '() { x' + i + '(); }\n';
}
evaluate(s);
var g = newGlobal({newCompartment: true});
(new Debugger).addDebuggee(g);
g.offThreadCompileToStencil('debugger;',{});
var stencil = finishOffThreadStencil();
g.evalStencil(stencil);