summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1830921.js
blob: fa4e8aee0f4b9f2705a03bd508ed6fa0db033326 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
gczeal(4);
x = [0, 0, 0, 0, 0];
for (let i = 0; i < 5; ++i) {
  for (let j = 0; j < x[i]; ++j) {}
}
gczeal(0);
let y = [];
for (let k = 0; k < 9999; ++k) {
  try {
    throw z;
  } catch (e) {
    y.push("" + e);
  }
}
print(y);