JavaScriptCore:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Oct 2007 14:12:30 +0000 (14:12 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Oct 2007 14:12:30 +0000 (14:12 +0000)
commit1e99283b43c429b3e1a453e3024a9f661de9fe2a
tree421d0f15ebb264fa7315da0b09001aeb9e98c203
parentd32617b2027113d1433c679ec3d2b509574f31b2
JavaScriptCore:

        Reviewed by Maciej.

        - fix http://bugs.webkit.org/show_bug.cgi?id=15639
          fix Math.abs(0), Math.ceil(-0), and Math.floor(-0)

        Test: fast/js/math.html

        * kjs/math_object.cpp: (MathFuncImp::callAsFunction):
        Fix abs to look at the sign bit. Add a special case for values in the range
        between -0 and -1 and a special case for ceil and for -0 for floor.

LayoutTests:

        Reviewed by Maciej.

        - test for http://bugs.webkit.org/show_bug.cgi?id=15639
          Math functions

        * fast/js/math-expected.txt: Added.
        * fast/js/math.html: Added.
        * fast/js/resources/math.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/math_object.cpp
LayoutTests/ChangeLog
LayoutTests/fast/js/math-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/math.html [new file with mode: 0644]
LayoutTests/fast/js/resources/math.js [new file with mode: 0644]