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

function f() {
  while (arguments.length > 0) {
    appendToActual(arguments[arguments.length-1]);
    arguments.length--;
  }
}

f(1, 2, 3, 4, 5);


assertEq(actual, expected)