| Index: Source/bindings/v8/V8Binding.h
|
| diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h
|
| index a8c266a20776cff36256fbe1f59a92e8a236c4f0..2f188d8ef6ab36bbc8aa18a33b07a3b72de3d846 100644
|
| --- a/Source/bindings/v8/V8Binding.h
|
| +++ b/Source/bindings/v8/V8Binding.h
|
| @@ -633,7 +633,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)
|
|
|