Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 54762699e16f9bdbb592cde7a793f676c21e7657..d061874a1d357eea4b8ce7427e65f574463b5b6c 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13403,7 +13403,8 @@ MaybeHandle<JSObject> JSObject::GetKeysForIndexedInterceptor( |
Maybe<bool> JSObject::HasRealNamedProperty(Handle<JSObject> object, |
Handle<Name> name) { |
- LookupIterator it(object, name, LookupIterator::OWN_SKIP_INTERCEPTOR); |
+ LookupIterator it = LookupIterator::PropertyOrElement( |
+ name->GetIsolate(), object, name, LookupIterator::OWN_SKIP_INTERCEPTOR); |
Maybe<PropertyAttributes> maybe_result = GetPropertyAttributes(&it); |
if (!maybe_result.IsJust()) return Nothing<bool>(); |
return Just(it.IsFound()); |
@@ -13423,7 +13424,8 @@ Maybe<bool> JSObject::HasRealElementProperty(Handle<JSObject> object, |
Maybe<bool> JSObject::HasRealNamedCallbackProperty(Handle<JSObject> object, |
Handle<Name> name) { |
- LookupIterator it(object, name, LookupIterator::OWN_SKIP_INTERCEPTOR); |
+ LookupIterator it = LookupIterator::PropertyOrElement( |
+ name->GetIsolate(), object, name, LookupIterator::OWN_SKIP_INTERCEPTOR); |
Maybe<PropertyAttributes> maybe_result = GetPropertyAttributes(&it); |
return maybe_result.IsJust() ? Just(it.state() == LookupIterator::ACCESSOR) |
: Nothing<bool>(); |