Reviewed by Oliver.
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 29 Dec 2007 04:01:13 +0000 (04:01 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 29 Dec 2007 04:01:13 +0000 (04:01 +0000)
commit36b7d3cee437aa8a00c35a281435f3bc04699e3f
treeea7b0a3c16ad2352e1202498e84d05e77096de0a
parentcb2ca1fc3368fbd0098cff18620f2b5c2cff5540
    Reviewed by Oliver.

        Fix (-0).toFixed() and re-factor a little
        Fix (-0).toExponential() and printing of trailing 0s in toExponential
        Fix toPrecision(nan) handling

        * kjs/number_object.cpp:
        (KJS::numberToFixed):
        (KJS::fractionalPartToString):
        (KJS::numberToExponential):
        (KJS::numberToPrecision):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/number_object.cpp
LayoutTests/ChangeLog
LayoutTests/fast/js/number-toExponential-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/number-toString-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/number-toString.html [new file with mode: 0644]
LayoutTests/fast/js/number-tofixed-expected.txt
LayoutTests/fast/js/number-toprecision-expected.txt
LayoutTests/fast/js/resources/number-toExponential.js [new file with mode: 0644]
LayoutTests/fast/js/resources/number-toString.js [new file with mode: 0644]
LayoutTests/fast/js/resources/number-tofixed.js
LayoutTests/fast/js/resources/number-toprecision.js