summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1191576.js
blob: 6a3369cc424f0572062a3a05eca1b1f7debdee07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |jit-test| allow-oom

if (!('gczeal' in this && 'oomAfterAllocations' in this))
    quit();

var lfcode = new Array();
gczeal(14);
loadFile(`
for each(let e in newGlobal()) {
    if (oomAfterAllocations(100))
        continue;
}
`);
function loadFile(lfVarx) {
    for (lfLocal in this) {}
    evaluate(lfVarx);
}