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