Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 060914a8d84973d0cfae15f091741ba0da9795d1..28413f22eae19c20cbebb6383ac01079c8c2142b 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -3543,10 +3543,9 @@ static Local<Value> GetPropertyByLookup(i::Isolate* isolate, |
// an exception. |
EXCEPTION_PREAMBLE(isolate); |
PropertyAttributes ignored; |
- i::Handle<i::Object> result = |
- i::Object::GetProperty(receiver, receiver, lookup, name, |
- &ignored); |
- has_pending_exception = result.is_null(); |
+ i::Handle<i::Object> result; |
+ has_pending_exception = !i::Object::GetProperty( |
+ receiver, receiver, lookup, name, &ignored).ToHandle(&result); |
EXCEPTION_BAILOUT_CHECK(isolate, Local<Value>()); |
return Utils::ToLocal(result); |