Index: test/mjsunit/math-floor-part4.js |
diff --git a/test/mjsunit/math-floor-part4.js b/test/mjsunit/math-floor-part4.js |
index c63362308342270b41965a91341098b011c1354f..94adc459b4f0e2d15e46d65eedf2639ab211495f 100644 |
--- a/test/mjsunit/math-floor-part4.js |
+++ b/test/mjsunit/math-floor-part4.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() { |