summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1315946.js
blob: d78c76eda6940494bb788c7cec3341d7d97f7b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if (!('oomTest' in this))
    quit();

// Don't run a full oomTest because it takes ages - a few iterations are
// sufficient to trigger the bug.
let i = 0;

oomTest(Function(`
    if (i < 10) {
        i++;
        gczeal(15,1);
        foo;
    }
`));