Changeset 42607 in webkit for trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
- Timestamp:
- Apr 17, 2009, 12:34:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
r40133 r42607 304 304 double d = value.uncheckedGetNumber(); 305 305 if (isfinite(d)) 306 return jsNumber(exec, floor(d));306 return jsNumber(exec, (d > 0) ? floor(d) : ceil(d)); 307 307 if (isnan(d) || isinf(d)) 308 308 return jsNaN(&exec->globalData());
Note:
See TracChangeset
for help on using the changeset viewer.