Skip to content
  • weinig@apple.com's avatar
    JavaScriptCore: · 775d8c52
    weinig@apple.com authored
    2008-10-10  Sam Weinig  <sam@webkit.org>
    
            Reviewed by Darin Adler.
    
            - Add a workaround for a bug in ceil in Darwin libc.
            - Remove old workarounds for JS math functions that are not needed
              anymore.
    
            The math functions are heavily tested by fast/js/math.html.
    
            * kjs/MathObject.cpp:
            (JSC::mathProtoFuncAbs): Remove workaround.
            (JSC::mathProtoFuncCeil): Ditto.
            (JSC::mathProtoFuncFloor): Ditto.
            * wtf/MathExtras.h:
            (wtf_ceil): Add ceil workaround for darwin.
    
    LayoutTests:
    
    2008-10-10  Sam Weinig  <sam@webkit.org>
    
            Reviewed by Darin Adler.
    
            - Update tests after fixing ceil(-0.1) behavior on darwin.
    
            * fast/js/math-expected.txt:
            * fast/js/resources/math.js: Remove code to detect sign of 0 now that the harness can handle it.
            * fast/xpath/4XPath/Core/test_core_functions-expected.txt:
            * fast/xpath/4XPath/Core/test_core_functions.html: Update test expect correct result of -0.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    775d8c52