2008-07-02 Cameron Zwarich <cwzwarich@uwaterloo.ca>
authorcwzwarich@webkit.org <cwzwarich@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Jul 2008 00:04:19 +0000 (00:04 +0000)
committercwzwarich@webkit.org <cwzwarich@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Jul 2008 00:04:19 +0000 (00:04 +0000)
commit4a84eb7cb2eae5c992f2477dc63c7a46b03efc0a
treecff3310d8bc7bba544c38eb803edab9acc9ad880
parenta18d509c3791b4b61dade881157bbc36682219be
2008-07-02  Cameron Zwarich  <cwzwarich@uwaterloo.ca>

        Reviewed by Darin.

        Bug 19776: Number.toExponential() is incorrect for numbers between 0.1 and 1
        <https://bugs.webkit.org/show_bug.cgi?id=19776>

        Perform the sign check for the exponent on the actual exponent value,
        which is 1 less than the value of decimalPoint, instead of on the value
        of decimalPoint itself.

        JavaScriptCore:

        * kjs/NumberPrototype.cpp:
        (KJS::exponentialPartToString):

        LayoutTests:

        * fast/js/number-toExponential-expected.txt:
        * fast/js/resources/number-toExponential.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@34961 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/NumberPrototype.cpp
LayoutTests/ChangeLog
LayoutTests/fast/js/number-toExponential-expected.txt
LayoutTests/fast/js/resources/number-toExponential.js