Index: src/lookup.cc |
diff --git a/src/lookup.cc b/src/lookup.cc |
index 1265d9056ea74f046584ebb21248a882c77bf9f0..32c829b1b4a8cb5b57fcd47e4dd6e867a2577b32 100644 |
--- a/src/lookup.cc |
+++ b/src/lookup.cc |
@@ -596,7 +596,6 @@ LookupIterator::State LookupIterator::LookupInHolder(Map* const map, |
switch (state_) { |
case NOT_FOUND: |
if (map->IsJSProxyMap()) { |
- // Do not leak private property names. |
if (IsElement() || !name_->IsPrivate()) return JSPROXY; |
} |
if (map->is_access_check_needed()) { |
@@ -606,9 +605,7 @@ LookupIterator::State LookupIterator::LookupInHolder(Map* const map, |
case ACCESS_CHECK: |
if (check_interceptor() && HasInterceptor(map) && |
!SkipInterceptor(JSObject::cast(holder))) { |
- // Do not leak private property names. |
- if (!name_.is_null() && name_->IsPrivate()) return NOT_FOUND; |
- return INTERCEPTOR; |
+ if (IsElement() || !name_->IsPrivate()) return INTERCEPTOR; |
} |
// Fall through. |
case INTERCEPTOR: |