summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/args-sum.js
blob: 04946e0fe803a877237ac2ca1d03398100962425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
actual = '';
expected = '666,';

function h() {
  var ans = 0;
  for (var i = 0; i < arguments.length; ++i) {
    ans += arguments[i];
  }
  return ans;
}

var q = h(600, 60, 6);
appendToActual(q);


assertEq(actual, expected)