Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index a7a04518f64ee794205b2b1d59d49da5b8dead07..be935dff2983b05785353c2d3ac56e83b08b0bfe 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -283,7 +283,8 @@ bool IC::TryRemoveInvalidPrototypeDependentStub(Handle<Object> receiver, |
if (receiver->IsGlobalObject()) { |
Handle<GlobalObject> global = Handle<GlobalObject>::cast(receiver); |
- LookupIterator it(global, name, LookupIterator::OWN_PROPERTY); |
+ LookupIterator it(global, name, LookupIterator::OWN_SKIP_INTERCEPTOR); |
+ if (it.state() == LookupIterator::ACCESS_CHECK) return false; |
if (!it.IsFound() || !it.HasProperty()) return false; |
Handle<PropertyCell> cell = it.GetPropertyCell(); |
return cell->type()->IsConstant(); |