Index: src/lookup-inl.h |
diff --git a/src/lookup-inl.h b/src/lookup-inl.h |
index a32295bff8229096e84cb8f3bbf197b6a8a79ee7..ae4b66df01d74c662bd58dc1a9c18427bd6dafc8 100644 |
--- a/src/lookup-inl.h |
+++ b/src/lookup-inl.h |
@@ -19,7 +19,7 @@ JSReceiver* LookupIterator::NextHolder(Map* map) { |
DCHECK(!next->map()->IsGlobalObjectMap() || |
next->map()->is_hidden_prototype()); |
- if (!check_derived() && |
+ if (!check_prototype_chain() && |
!(check_hidden() && next->map()->is_hidden_prototype()) && |
// Always lookup behind the JSGlobalProxy into the JSGlobalObject, even |
// when not checking other hidden prototypes. |