| Index: Source/bindings/v8/V8Binding.h
|
| diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h
|
| index 98d34c21affe8e6b2b0bacb5606f4c3c03558e35..f27f8bf85ace0aa5bcdac84c6cc1671505aa91dd 100644
|
| --- a/Source/bindings/v8/V8Binding.h
|
| +++ b/Source/bindings/v8/V8Binding.h
|
| @@ -637,7 +637,11 @@ namespace WebCore {
|
|
|
| inline double toWebCoreDate(v8::Handle<v8::Value> object)
|
| {
|
| - return (object->IsDate() || object->IsNumber()) ? object->NumberValue() : std::numeric_limits<double>::quiet_NaN();
|
| + if (object->IsDate())
|
| + return v8::Handle<v8::Date>::Cast(object)->ValueOf();
|
| + if (object->IsNumber())
|
| + return object->NumberValue();
|
| + return std::numeric_limits<double>::quiet_NaN();
|
| }
|
|
|
| inline v8::Handle<v8::Value> v8DateOrNull(double value, v8::Isolate* isolate)
|
|
|