Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 45dc456d5e09d1143bd52dcce130f3e343b3ec6e..613bc60c2f01afcb3e9e5350375303e8720b95af 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4226,11 +4226,13 @@ int32_t Int32ArrayTraits::defaultValue() { return 0; } |
float Float32ArrayTraits::defaultValue() { |
- return static_cast<float>(base::OS::nan_value()); |
+ return std::numeric_limits<float>::quiet_NaN(); |
} |
-double Float64ArrayTraits::defaultValue() { return base::OS::nan_value(); } |
+double Float64ArrayTraits::defaultValue() { |
+ return std::numeric_limits<double>::quiet_NaN(); |
+} |
template <class Traits> |