Changeset 58224 in webkit for trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
- Timestamp:
- Apr 24, 2010, 10:00:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
r56560 r58224 242 242 243 243 if (number >= mantissaOverflowLowerBound) { 244 // FIXME: It is incorrect to use UString::ascii() here because it's not thread-safe. 244 245 if (radix == 10) 245 246 number = WTF::strtod(s.substr(firstDigitPosition, p - firstDigitPosition).ascii(), 0); … … 270 271 return 0; 271 272 273 // FIXME: UString::toDouble will ignore leading ASCII spaces, but we need to ignore 274 // other StrWhiteSpaceChar values as well. 272 275 return s.toDouble(true /*tolerant*/, false /* NaN for empty string */); 273 276 }
Note:
See TracChangeset
for help on using the changeset viewer.