Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index f6da37176bdf19ad127de7a99e805931619d9c4d..dc648b2fd0cd55434c7f9ce172499f46f4e0d4d0 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -13753,7 +13753,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InternalNumberFormat) { |
CONVERT_ARG_HANDLE_CHECKED(Object, number, 1); |
bool has_pending_exception = false; |
- double value = Execution::ToNumber(number, &has_pending_exception)->Number(); |
+ Handle<Object> value = Execution::ToNumber(number, &has_pending_exception); |
if (has_pending_exception) { |
ASSERT(isolate->has_pending_exception()); |
return Failure::Exception(); |
@@ -13764,7 +13764,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InternalNumberFormat) { |
if (!number_format) return isolate->ThrowIllegalOperation(); |
icu::UnicodeString result; |
- number_format->format(value, result); |
+ number_format->format(value->Number(), result); |
return *isolate->factory()->NewStringFromTwoByte( |
Vector<const uint16_t>( |