Changeset 88587 in webkit for trunk/Source/JavaScriptCore/runtime/MathObject.cpp
- Timestamp:
- Jun 10, 2011, 7:03:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/MathObject.cpp
r86727 r88587 167 167 { 168 168 unsigned argsCount = exec->argumentCount(); 169 double result = - Inf;169 double result = -std::numeric_limits<double>::infinity(); 170 170 for (unsigned k = 0; k < argsCount; ++k) { 171 171 double val = exec->argument(k).toNumber(exec); 172 172 if (isnan(val)) { 173 result = NaN;173 result = std::numeric_limits<double>::quiet_NaN(); 174 174 break; 175 175 } … … 183 183 { 184 184 unsigned argsCount = exec->argumentCount(); 185 double result = + Inf;185 double result = +std::numeric_limits<double>::infinity(); 186 186 for (unsigned k = 0; k < argsCount; ++k) { 187 187 double val = exec->argument(k).toNumber(exec); 188 188 if (isnan(val)) { 189 result = NaN;189 result = std::numeric_limits<double>::quiet_NaN(); 190 190 break; 191 191 }
Note:
See TracChangeset
for help on using the changeset viewer.