michael@0: actual = ''; michael@0: expected = '51,'; michael@0: michael@0: var g = 0; michael@0: michael@0: function h(args) { michael@0: g = args[1]; michael@0: } michael@0: michael@0: function f() { michael@0: h(arguments); michael@0: } michael@0: michael@0: for (var i = 0; i < 10000; ++i) { michael@0: f(100, 51); michael@0: } michael@0: michael@0: appendToActual(g); michael@0: michael@0: michael@0: assertEq(actual, expected)