Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index dcd01cd292b74b459b9c141fa7f7e8e392644959..72519faef4a0ff08221625a554667c33bf8ecbe0 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -1693,8 +1693,7 @@ Handle<Code> StoreIC::CompileHandler(LookupIterator* lookup, |
// This is currently guaranteed by checks in StoreIC::Store. |
Handle<JSObject> receiver = Handle<JSObject>::cast(lookup->GetReceiver()); |
Handle<JSObject> holder = lookup->GetHolder<JSObject>(); |
- DCHECK(!receiver->IsAccessCheckNeeded() || |
- isolate()->IsInternallyUsedPropertyName(lookup->name())); |
+ DCHECK(!receiver->IsAccessCheckNeeded() || lookup->name()->IsPrivate()); |
switch (lookup->state()) { |
case LookupIterator::TRANSITION: { |