Changeset 12028 in webkit for trunk/JavaScriptCore/kjs/math_object.cpp
- Timestamp:
- Jan 12, 2006, 8:58:46 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/math_object.cpp
r11962 r12028 238 238 if (isNaN(arg2)) 239 239 result = NaN; 240 #if !APPLE_CHANGES241 else if (arg2 == 0)242 result = 1;243 #endif244 240 else if (isNaN(arg) && arg2 != 0) 245 241 result = NaN; 246 #if !APPLE_CHANGES247 else if (::fabs(arg) > 1 && KJS::isPosInf(arg2))248 result = Inf;249 else if (::fabs(arg) > 1 && KJS::isNegInf(arg2))250 result = +0;251 #endif252 242 else if (::fabs(arg) == 1 && KJS::isInf(arg2)) 253 243 result = NaN; 254 #if !APPLE_CHANGES255 else if (::fabs(arg) < 1 && KJS::isPosInf(arg2))256 result = +0;257 else if (::fabs(arg) < 1 && KJS::isNegInf(arg2))258 result = Inf;259 #endif260 244 else 261 245 result = ::pow(arg, arg2);
Note:
See TracChangeset
for help on using the changeset viewer.