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

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