Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review: https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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)