| Index: Source/bindings/v8/V8Binding.h
|
| diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h
|
| index 76250156a929c0716e6ee940f1b6fe4e139031cd..5e12d5e01631f3caff6e6eb438b6008e284729c2 100644
|
| --- a/Source/bindings/v8/V8Binding.h
|
| +++ b/Source/bindings/v8/V8Binding.h
|
| @@ -646,7 +646,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)
|
|
|