1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/testApplyUnbox.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,11 @@ 1.4 +function testApplyUnboxHelper(f,a) { 1.5 + var q; 1.6 + for (var i = 0; i < 10; ++i) 1.7 + q = f.apply(f,a); 1.8 + return q; 1.9 +} 1.10 +function testApplyUnbox() { 1.11 + var f = function(x) { return x; } 1.12 + return [testApplyUnboxHelper(f,[1]), testApplyUnboxHelper(f,[true])].join(","); 1.13 +} 1.14 +assertEq(testApplyUnbox(), "1,true");