michael@0: actual = ''; michael@0: expected = '6,'; michael@0: michael@0: // tracing length michael@0: michael@0: var g = 0; michael@0: michael@0: function h(args) { michael@0: g = args.length; michael@0: } michael@0: michael@0: function f() { michael@0: h(arguments); michael@0: } michael@0: michael@0: for (var i = 0; i < 5; ++i) { michael@0: f(10, 20, 30, 40, 50, 60); michael@0: } michael@0: appendToActual(g); michael@0: michael@0: michael@0: assertEq(actual, expected)