summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1543589.js
blob: c8c8d6da14229b2800908fa071c49c7d46e897bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| skip-if: getBuildConfiguration("arm64-simulator") === true
// This test times out in ARM64 simulator builds.

gczeal(0);
gcparam('maxNurseryBytes', 16 * 1024 * 1024);
gcparam('minNurseryBytes', 16 * 1024 * 1024);

let a = [];
for (var i = 0; i < 20000; i++) {
    a.push(import("nonexistent.js"));
    Symbol();
}

for (let p of a) {
    p.catch(() => {});
}