js/src/jit-test/tests/arguments/args7.js

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:11abb8f8f593
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)

mercurial