| Index: src/runtime/runtime-date.cc
|
| diff --git a/src/runtime/runtime-date.cc b/src/runtime/runtime-date.cc
|
| index 47342f98b1a341bc8f42292fe11cbf7b373819df..c47b1585645200a847175ab2c1d311e3c64551e1 100644
|
| --- a/src/runtime/runtime-date.cc
|
| +++ b/src/runtime/runtime-date.cc
|
| @@ -60,16 +60,11 @@ RUNTIME_FUNCTION(Runtime_DateSetValue) {
|
| }
|
|
|
|
|
| -RUNTIME_FUNCTION(Runtime_ThrowIfNotADate) {
|
| +RUNTIME_FUNCTION(Runtime_IsDate) {
|
| SealHandleScope shs(isolate);
|
| DCHECK_EQ(1, args.length());
|
| CONVERT_ARG_CHECKED(Object, obj, 0);
|
| - if (!obj->IsJSDate()) {
|
| - HandleScope scope(isolate);
|
| - THROW_NEW_ERROR_RETURN_FAILURE(
|
| - isolate, NewTypeError(MessageTemplate::kNotDateObject));
|
| - }
|
| - return obj;
|
| + return isolate->heap()->ToBoolean(obj->IsJSDate());
|
| }
|
|
|
|
|
|
|