From e444ad1a5b9b110472a0b650d8d2c4da0a96f662 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 26 Aug 2008 20:02:59 -0700 Subject: [PATCH] Test case for bug 452340. --- js/src/trace-test.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/js/src/trace-test.js b/js/src/trace-test.js index 42218cb6ef..c7287d8cf1 100644 --- a/js/src/trace-test.js +++ b/js/src/trace-test.js @@ -972,6 +972,17 @@ function testArrayDensityChange() { testArrayDensityChange.expected = 404; test(testArrayDensityChange); +function testDoubleToStr() { + var x = 0.0; + var y = 5.5; + for (var i = 0; i < 200; i++) { + x += parseFloat(y.toString()); + } + return x; +} +testDoubleToStr.expected = 5.5*200; +test(testDoubleToStr); + /* Keep these at the end so that we can see the summary after the trace-debug spew. */ print("\npassed:", passes.length && passes.join(",")); print("\nFAILED:", fails.length && fails.join(",")); -- 2.11.4.GIT