Changeset 37415 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 8, 2008, 2:18:08 AM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2008-10-08 Maciej Stachowiak <[email protected]>

Reviewed by Oliver Hunt.


  • correctly handle appending -0 to a string, it should stringify as just 0
  • kjs/ustring.cpp: (JSC::concatenate):

LayoutTests:

2008-10-08 Maciej Stachowiak <[email protected]>

Reviewed by Oliver Hunt.

  • added test case for: correctly handle appending -0 to a string, it should stringify as just 0 (added to existing test)


  • fast/js/number-toString-expected.txt:
  • fast/js/resources/number-toString.js:
  • updated results in light of above fix


  • fast/js/math-transforms-expected.txt:
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r37412 r37415  
     12008-10-08  Maciej Stachowiak  <[email protected]>
     2
     3        Reviewed by Oliver Hunt.
     4       
     5        - correctly handle appending -0 to a string, it should stringify as just 0
     6
     7        * kjs/ustring.cpp:
     8        (JSC::concatenate):
     9
    1102008-10-08  Prasanth Ullattil  <[email protected]>
    211
  • trunk/JavaScriptCore/kjs/ustring.cpp

    r37089 r37415  
    768768    if (isnan(d))
    769769        return concatenate(rep, "NaN");
     770
     771    if (d == 0.0) // stringify -0 as 0
     772        d = 0.0;
    770773
    771774    char buf[80];
Note: See TracChangeset for help on using the changeset viewer.