Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 2092859cd55deebe68fbbd54d51bb43a3ff3ac12..9fdc80824eac900af95695c6cba2e0e81146ae9c 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -951,7 +951,7 @@ bool Object::SameValue(Object* other) { |
double this_value = Number(); |
double other_value = other->Number(); |
return (this_value == other_value) || |
- (isnan(this_value) && isnan(other_value)); |
+ (std::isnan(this_value) && std::isnan(other_value)); |
} |
if (IsString() && other->IsString()) { |
return String::cast(this)->Equals(String::cast(other)); |
@@ -14391,7 +14391,7 @@ Object* JSDate::DoGetField(FieldIndex index) { |
} |
double time = value()->Number(); |
- if (isnan(time)) return GetIsolate()->heap()->nan_value(); |
+ if (std::isnan(time)) return GetIsolate()->heap()->nan_value(); |
int64_t local_time_ms = date_cache->ToLocal(static_cast<int64_t>(time)); |
int days = DateCache::DaysFromTime(local_time_ms); |
@@ -14410,7 +14410,7 @@ Object* JSDate::GetUTCField(FieldIndex index, |
DateCache* date_cache) { |
ASSERT(index >= kFirstUTCField); |
- if (isnan(value)) return GetIsolate()->heap()->nan_value(); |
+ if (std::isnan(value)) return GetIsolate()->heap()->nan_value(); |
int64_t time_ms = static_cast<int64_t>(value); |