Commit 1e0c067d authored by verwaest's avatar verwaest Committed by Commit bot

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}
parent 03cef94a
......@@ -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()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment