Index: test/mjsunit/math-floor-part2.js |
diff --git a/test/mjsunit/math-floor-part2.js b/test/mjsunit/math-floor-part2.js |
index b6d51b2bde91265c755e17f9b5319c8ac34073aa..d9bc410fa2f31a91878c246cd66a32d8b31f75bf 100644 |
--- a/test/mjsunit/math-floor-part2.js |
+++ b/test/mjsunit/math-floor-part2.js |
@@ -37,6 +37,15 @@ function testFloor(expect, input) { |
assertEquals(expect, test(input)); |
%OptimizeFunctionOnNextCall(test); |
assertEquals(expect, test(input)); |
+ |
+ var test_double_output = new Function( |
+ 'n', |
+ '"' + (test_id++) + '";return Math.floor(n) + -0.0'); |
+ assertEquals(expect, test_double_output(input)); |
+ assertEquals(expect, test_double_output(input)); |
+ assertEquals(expect, test_double_output(input)); |
+ %OptimizeFunctionOnNextCall(test_double_output); |
+ assertEquals(expect, test_double_output(input)); |
} |
function zero() { |