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