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:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.