Changeset 13365 in webkit


Ignore:
Timestamp:
Mar 17, 2006, 2:03:39 PM (19 years ago)
Author:
mjs
Message:

Reviewed by Darin.


  • kjs/ustring.cpp: (KJS::UString::from): Use "NaN" for all NaN values, regardless of sign.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r13339 r13365  
     12006-03-11  Maciej Stachowiak  <[email protected]>
     2
     3        Reviewed by Darin.
     4       
     5        - fixed "charAt layout test fails on intel macs; some NaNs are printed as -NaN"
     6        http://bugzilla.opendarwin.org/show_bug.cgi?id=7745
     7
     8        * kjs/ustring.cpp:
     9        (KJS::UString::from): Use "NaN" for all NaN values, regardless of sign.
     10
    1112006-03-16  Maciej Stachowiak  <[email protected]>
    212
  • trunk/JavaScriptCore/kjs/ustring.cpp

    r13311 r13365  
    562562UString UString::from(double d)
    563563{
     564  // avoid ever printing -NaN, in JS conceptually there is only one NaN value
     565  if (isNaN(d))
     566    return "NaN";
     567
    564568  char buf[80];
    565569  int decimalPoint;
Note: See TracChangeset for help on using the changeset viewer.