| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index bfd10110a01e32bae663311ccad937909d7cf8cc..e0b3cd5f0c059844c76738cb4295aa4f87e2b74d 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -3534,10 +3534,9 @@ static Local<Value> GetPropertyByLookup(i::Isolate* isolate,
|
| // If the property being looked up is a callback, it can throw
|
| // an exception.
|
| EXCEPTION_PREAMBLE(isolate);
|
| - PropertyAttributes ignored;
|
| + i::LookupIterator it(receiver, name);
|
| i::Handle<i::Object> result;
|
| - has_pending_exception = !i::Object::GetProperty(
|
| - receiver, receiver, lookup, name, &ignored).ToHandle(&result);
|
| + has_pending_exception = !i::Object::GetProperty(&it).ToHandle(&result);
|
| EXCEPTION_BAILOUT_CHECK(isolate, Local<Value>());
|
|
|
| return Utils::ToLocal(result);
|
|
|