summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1466626-4.js
blob: aa02a3ba08eb84125f9cd81f4b37a7b7feddf86c (plain)
1
2
3
4
5
6
7
8
9
10
// |jit-test| skip-if: !('oomTest' in this)

var source = "{";
for (var i = 0; i < 120; ++i)
    source += `function f${i}(){}`
source += "}";

oomTest(function() {
    Function(source);
});