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

Legend:

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