Index: src/lookup.cc |
diff --git a/src/lookup.cc b/src/lookup.cc |
index 58e3032e502d2e2fbfed4d7ac855dff500b86e28..97fd53522a91fbb5bf082d0e3100d31ac0f6f70c 100644 |
--- a/src/lookup.cc |
+++ b/src/lookup.cc |
@@ -252,7 +252,7 @@ void LookupIterator::TransitionToAccessorProperty( |
bool LookupIterator::HolderIsReceiverOrHiddenPrototype() const { |
DCHECK(has_property_ || state_ == INTERCEPTOR || state_ == JSPROXY); |
// Optimization that only works if configuration_ is not mutable. |
- if (!check_derived()) return true; |
+ if (!check_prototype_chain()) return true; |
DisallowHeapAllocation no_gc; |
Handle<Object> receiver = GetReceiver(); |
if (!receiver->IsJSReceiver()) return false; |