Fix Math.pow implementation with MinGW-w64
authorJonathan Liu <net147@gmail.com>
Mon, 17 Dec 2012 12:15:57 +0000 (23:15 +1100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 17 Dec 2012 15:16:21 +0000 (16:16 +0100)
commit3651ffe993a9243a89fe965fedee9315f3ab68f4
tree354dfbf7cccfb3614d4ef328cd11a06a72b98bd0
parentfc3a6d84a79b606864d6e76b4fb8e1edc8ab92cb
Fix Math.pow implementation with MinGW-w64
https://bugs.webkit.org/show_bug.cgi?id=105087

Patch by Jonathan Liu <net147@gmail.com> on 2012-12-17
Reviewed by Simon Hausmann.

The MinGW-w64 runtime has different behaviour for pow()
compared to other C runtimes. This results in the following
test262 tests failing with the latest MinGW-w64 runtime:
- S15.8.2.13_A14
- S15.8.2.13_A16
- S15.8.2.13_A20
- S15.8.2.13_A22

Handle the special cases that are different with MinGW-w64.

* runtime/MathObject.cpp:
(JSC::mathPow):

Change-Id: Ifad1aa24ac36f2d452e9166a4298525793597da3
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/MathObject.cpp