Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / jit-test / tests / arguments / args7.js
1 actual = '';
2 expected = '5,4,3,2,1,';
3
4 function f() {
5   while (arguments.length > 0) {
6     appendToActual(arguments[arguments.length-1]);
7     arguments.length--;
8   }
9 }
10
11 f(1, 2, 3, 4, 5);
12
13
14 assertEq(actual, expected)