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

var globals = [];
for (var i = 0; i < 24; ++i) {
    var g = newGlobal();
    globals.push(g);
}

var i = 0;
oomTest(function() {
    globals[(i++) % globals.length].eval(`
        evaluate("function f() {}", {envChainObject: this.env});
    `);
});