summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1543589.js
blob: 38d5eb92493f7aa66c92cfacd0b22dd1cf3cc6d8 (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(() => {});
}