Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index 2bd40de8ca09f7867e32bc61461e8ab1daa28b1b..3a1f4a6c9b318071f26c8f33e5bd494319527008 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -281,7 +281,7 @@ bool IC::TryRemoveInvalidPrototypeDependentStub(Handle<Object> receiver, |
if (receiver->IsGlobalObject()) { |
Handle<GlobalObject> global = Handle<GlobalObject>::cast(receiver); |
- LookupIterator it(global, name, LookupIterator::CHECK_PROPERTY); |
+ LookupIterator it(global, name, LookupIterator::OWN_PROPERTY); |
if (!it.IsFound() || !it.HasProperty()) return false; |
Handle<PropertyCell> cell = it.GetPropertyCell(); |
return cell->type()->IsConstant(); |