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