summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1191576.js
blob: 63469052567970e435294bcfda3fe7c23c1c8743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |jit-test| allow-oom; skip-if: !('gczeal' in this && 'oomAfterAllocations' in this)

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);
}