Index: src/lookup.cc |
diff --git a/src/lookup.cc b/src/lookup.cc |
index be0edaa3a27b965c2d46882c8908b39c78d7c112..3b953c9d71f7f70f1c37ffc3d760740d8d316c2c 100644 |
--- a/src/lookup.cc |
+++ b/src/lookup.cc |
@@ -609,7 +609,10 @@ LookupIterator::State LookupIterator::LookupInHolder(Map* const map, |
} |
switch (state_) { |
case NOT_FOUND: |
- if (map->IsJSProxyMap()) return JSPROXY; |
+ if (map->IsJSProxyMap()) { |
+ if (!name_.is_null() && name_->IsPrivate()) return NOT_FOUND; |
+ return JSPROXY; |
+ } |
if (map->is_access_check_needed() && |
(IsElement() || !isolate_->IsInternallyUsedPropertyName(name_))) { |
return ACCESS_CHECK; |