summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/loops/bug655854.js
blob: 81c719431425089fa4edaa5b2756043b1b5d75b1 (plain)
1
2
3
4
5
6
7
8
function foo(a, b, c) {
  var res = 0;
  for (var b = 0; b < c; b++)
    res += a[b];
  return res;
}
assertEq(foo([1,2,3], 0, 10), NaN);