summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1466626-2.js
blob: 9c1ce593a85c6679e682e346379399057e73c01b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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});
    `);
});