michael@0: function testApplyUnboxHelper(f,a) { michael@0: var q; michael@0: for (var i = 0; i < 10; ++i) michael@0: q = f.apply(f,a); michael@0: return q; michael@0: } michael@0: function testApplyUnbox() { michael@0: var f = function(x) { return x; } michael@0: return [testApplyUnboxHelper(f,[1]), testApplyUnboxHelper(f,[true])].join(","); michael@0: } michael@0: assertEq(testApplyUnbox(), "1,true");