Adjust GetPropertyWithFailedAccessCheck to support elements
BUG=v8:4137 LOG=n Review URL: https://codereview.chromium.org/1155503003 Cr-Commit-Position: refs/heads/master@{#28559}
This commit is contained in:
parent
e8c593c4f8
commit
10329be641
@ -478,8 +478,7 @@ static bool FindAllCanReadHolder(LookupIterator* it) {
|
||||
if (AccessorInfo::cast(*accessors)->all_can_read()) return true;
|
||||
}
|
||||
} else if (it->state() == LookupIterator::INTERCEPTOR) {
|
||||
auto holder = it->GetHolder<JSObject>();
|
||||
if (holder->GetNamedInterceptor()->all_can_read()) return true;
|
||||
if (it->GetInterceptor()->all_can_read()) return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user