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:
verwaest 2015-05-21 08:24:53 -07:00 committed by Commit bot
parent e8c593c4f8
commit 10329be641

View File

@ -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;