summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/loops/hoist-09.js
blob: 1b398c7c26c1557f0ca3c788244e2d72663de6c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
function foo(x, y) {
  for (var i = 0; i < x.length; i++) {
    x[i];
    if (i < 20)
      y[i + 1] = 0;
  }
}

var q = Array(1,2,3,4,5);
foo(q, []);