Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 4498286916238f6ea009c1a3a0ce9124eb5e6cc4..834783859f3011aee061e52d335b37809936d457 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -4734,8 +4734,8 @@ double v8::Date::NumberValue() const { |
if (IsDeadCheck(isolate, "v8::Date::NumberValue()")) return 0; |
LOG_API(isolate, "Date::NumberValue"); |
i::Handle<i::Object> obj = Utils::OpenHandle(this); |
- i::Handle<i::JSValue> jsvalue = i::Handle<i::JSValue>::cast(obj); |
- return jsvalue->value()->Number(); |
+ i::Handle<i::JSDate> jsdate = i::Handle<i::JSDate>::cast(obj); |
+ return jsdate->value()->Number(); |
} |
@@ -4747,7 +4747,7 @@ void v8::Date::DateTimeConfigurationChangeNotification() { |
ENTER_V8(isolate); |
i::HandleScope scope(isolate); |
- // Get the function ResetDateCache (defined in date-delay.js). |
+ // Get the function ResetDateCache (defined in date.js). |
i::Handle<i::String> func_name_str = |
isolate->factory()->LookupAsciiSymbol("ResetDateCache"); |
i::MaybeObject* result = |