Ignore:
Timestamp:
Oct 28, 2007, 7:52:04 PM (18 years ago)
Author:
[email protected]
Message:

2007-10-28 Mark Rowe <[email protected]>

Reviewed by Maciej and Tim.

Replace uses of isNaN and isInf with isnan and isinf, and
remove isNaN and isInf.

  • kjs/config.h: Remove unused HAVE_'s
  • kjs/date_object.cpp: (KJS::DateInstance::getTime): (KJS::DateInstance::getUTCTime): (KJS::DateProtoFunc::callAsFunction): (KJS::DateObjectImp::construct): (KJS::DateObjectFuncImp::callAsFunction):
  • kjs/function.cpp: (KJS::GlobalFuncImp::callAsFunction):
  • kjs/math_object.cpp: (MathFuncImp::callAsFunction):
  • kjs/nodes2string.cpp: (KJS::isParserRoundTripNumber):
  • kjs/number_object.cpp: (NumberProtoFunc::callAsFunction):
  • kjs/operations.cpp:
  • kjs/operations.h:
  • kjs/string_object.cpp: (KJS::StringProtoFunc::callAsFunction):
  • kjs/ustring.cpp: (KJS::UString::from):
  • kjs/value.cpp: (KJS::JSValue::toInteger): (KJS::JSValue::toInt32SlowCase): (KJS::JSValue::toUInt32SlowCase):

2007-10-28 Mark Rowe <[email protected]>

Reviewed by Maciej.

Replace uses of isNaN and isInf with isnan and isinf.

  • bindings/js/JSHTMLOptionsCollectionCustom.cpp: (WebCore::JSHTMLOptionsCollection::setLength):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/function.cpp

    r27199 r27201  
    4141#include <wtf/ASCIICType.h>
    4242#include <wtf/Assertions.h>
     43#include <wtf/MathExtras.h>
    4344#include <wtf/unicode/Unicode.h>
    4445
     
    812813    break;
    813814  case IsNaN:
    814     res = jsBoolean(isNaN(args[0]->toNumber(exec)));
     815    res = jsBoolean(isnan(args[0]->toNumber(exec)));
    815816    break;
    816817  case IsFinite: {
    817818    double n = args[0]->toNumber(exec);
    818     res = jsBoolean(!isNaN(n) && !isInf(n));
     819    res = jsBoolean(!isnan(n) && !isinf(n));
    819820    break;
    820821  }
Note: See TracChangeset for help on using the changeset viewer.