JavaScriptCore:
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Jan 2009 01:44:28 +0000 (01:44 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Jan 2009 01:44:28 +0000 (01:44 +0000)
commit0ad3debfdd4e75f0d7a3fb0dcda57b5f14c6440c
tree2e64b3b932dae573530d148b13f5ba7a7fe417bb
parent984121e467fb0ab822c513962ba40914a1ddf832
JavaScriptCore:

2009-01-13  Beth Dakin  <bdakin@apple.com>

        Reviewed by Darin Adler and Oliver Hunt.

        <rdar://problem/6489314> REGRESSION: Business widget's front side
        fails to render correctly when flipping widget

        The problem here is that parseInt was parsing NaN as 0. This patch
        corrects that by parsing NaN as NaN. This matches our old behavior
        and Firefox.

        * runtime/JSGlobalObjectFunctions.cpp:
        (JSC::globalFuncParseInt):

LayoutTests:

2009-01-13  Beth Dakin  <bdakin@apple.com>

        Reviewed by Darin Adler and Oliver Hunt.

        Updated test and results for <rdar://problem/6489314> REGRESSION:
        Business widget's front side fails to render correctly when
        flipping widget

        parseInt(NaN) should be NaN.
        * fast/js/numeric-conversion-expected.txt:
        * fast/js/resources/numeric-conversion.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@39882 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
LayoutTests/ChangeLog
LayoutTests/fast/js/numeric-conversion-expected.txt
LayoutTests/fast/js/resources/numeric-conversion.js