michael@0: actual = ''; michael@0: expected = '1 2,1 2,1 2,1 2,1 2,1 2,1 2,1 2,1 undefined,1 undefined,1 undefined,1 undefined,1 undefined,1 undefined,1 undefined,1 undefined,'; michael@0: michael@0: function g(a, b) { michael@0: appendToActual(a + ' ' + b); michael@0: } michael@0: michael@0: function f() { michael@0: for (var i = 0; i < 8; ++i) { michael@0: g.apply(this, arguments); michael@0: } michael@0: } michael@0: michael@0: f(1, 2); michael@0: f(1); michael@0: michael@0: michael@0: assertEq(actual, expected)