Index: src/runtime/runtime-numbers.cc |
diff --git a/src/runtime/runtime-numbers.cc b/src/runtime/runtime-numbers.cc |
index bc0bb3656dccc9c61cd5cc8cfe81e262d3fc7d58..a7a15e476b070e30db938d77febb5e6dbdb171a8 100644 |
--- a/src/runtime/runtime-numbers.cc |
+++ b/src/runtime/runtime-numbers.cc |
@@ -229,8 +229,9 @@ RUNTIME_FUNCTION(Runtime_StringParseFloat) { |
DCHECK(args.length() == 1); |
CONVERT_ARG_HANDLE_CHECKED(String, subject, 0); |
- double value = StringToDouble(isolate->unicode_cache(), subject, |
- ALLOW_TRAILING_JUNK, base::OS::nan_value()); |
+ double value = |
+ StringToDouble(isolate->unicode_cache(), subject, ALLOW_TRAILING_JUNK, |
+ std::numeric_limits<double>::quiet_NaN()); |
return *isolate->factory()->NewNumber(value); |
} |