| Index: Source/bindings/v8/V8Binding.h
|
| diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h
|
| index 799633e516906b7ae3d2842139a4d2e628b5e6db..49d120fdc37c8b30e1564f9181acfb077f2df353 100644
|
| --- a/Source/bindings/v8/V8Binding.h
|
| +++ b/Source/bindings/v8/V8Binding.h
|
| @@ -615,7 +615,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)
|
|
|