Don't perform access checks for internally used properties
BUG= TBR=dcarney@chromium.org Review URL: https://codereview.chromium.org/956283003 Cr-Commit-Position: refs/heads/master@{#26878}
This commit is contained in:
parent
03cef94a49
commit
1e0c067d55
@ -38,7 +38,10 @@ LookupIterator::State LookupIterator::LookupInHolder(Map* map,
|
||||
switch (state_) {
|
||||
case NOT_FOUND:
|
||||
if (map->IsJSProxyMap()) return JSPROXY;
|
||||
if (map->is_access_check_needed()) return ACCESS_CHECK;
|
||||
if (map->is_access_check_needed() &&
|
||||
!isolate_->IsInternallyUsedPropertyName(name_)) {
|
||||
return ACCESS_CHECK;
|
||||
}
|
||||
// Fall through.
|
||||
case ACCESS_CHECK:
|
||||
if (check_interceptor() && map->has_named_interceptor()) {
|
||||
|
Loading…
Reference in New Issue
Block a user