Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 226878cda43b97f8a427d7125c1214c1fa2e2945..d1197e875a59590ab2c13a7f9438e13b81e3fdb0 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -6617,7 +6617,11 @@ bool JSReceiver::GetOwnPropertyDescriptor(LookupIterator* it, |
it->GetAccessors()->IsAccessorPair(); |
if (!is_accessor_pair) { |
// 5a. Set D.[[Value]] to the value of X's [[Value]] attribute. |
- Handle<Object> value = JSObject::GetProperty(it).ToHandleChecked(); |
+ Handle<Object> value; |
+ if (!JSObject::GetProperty(it).ToHandle(&value)) { |
+ DCHECK(isolate->has_pending_exception()); |
+ return false; |
+ } |
desc->set_value(value); |
// 5b. Set D.[[Writable]] to the value of X's [[Writable]] attribute |
desc->set_writable((attrs & READ_ONLY) == 0); |