michael@0: actual = ''; michael@0: expected = '0,0,0,'; michael@0: michael@0: function f() { michael@0: arguments.length--; michael@0: for (var i = 0; i < arguments.length; ++i) { michael@0: appendToActual(i); michael@0: } michael@0: } michael@0: michael@0: f(1, 2); michael@0: f(1, 2); michael@0: f(2, 2); michael@0: michael@0: michael@0: assertEq(actual, expected)