Changeset 27201 in webkit for trunk/JavaScriptCore/kjs/function.cpp
- Timestamp:
- Oct 28, 2007, 7:52:04 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.cpp
r27199 r27201 41 41 #include <wtf/ASCIICType.h> 42 42 #include <wtf/Assertions.h> 43 #include <wtf/MathExtras.h> 43 44 #include <wtf/unicode/Unicode.h> 44 45 … … 812 813 break; 813 814 case IsNaN: 814 res = jsBoolean(is NaN(args[0]->toNumber(exec)));815 res = jsBoolean(isnan(args[0]->toNumber(exec))); 815 816 break; 816 817 case IsFinite: { 817 818 double n = args[0]->toNumber(exec); 818 res = jsBoolean(!is NaN(n) && !isInf(n));819 res = jsBoolean(!isnan(n) && !isinf(n)); 819 820 break; 820 821 }
Note:
See TracChangeset
for help on using the changeset viewer.