summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-919536.js
blob: 0c07b4b59889150d5cbb1d2ccfac789539959bce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if ("gczeal" in this) {
  gczeal(2, 1000);

  var a = new Array(10 * 1000);

  var i = a.length;
  while (i-- != 0) {
    switch (i % 3) {
     case 0:
      a[i] = { };
      break;
    }
  }

  gc();
}