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

function h() {
  var p;
  for (var i = 0; i < 5; ++i) {
    p = arguments;
  }
  appendToActual(p[0]);
  appendToActual(p[1]);
}

h(10, 20);


assertEq(actual, expected)