From 10329be641f2cb832ec2129f61e71fe311a10620 Mon Sep 17 00:00:00 2001 From: verwaest Date: Thu, 21 May 2015 08:24:53 -0700 Subject: [PATCH] Adjust GetPropertyWithFailedAccessCheck to support elements BUG=v8:4137 LOG=n Review URL: https://codereview.chromium.org/1155503003 Cr-Commit-Position: refs/heads/master@{#28559} --- src/objects.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/objects.cc b/src/objects.cc index 90985eea7d..ed2d87c749 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -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(); - if (holder->GetNamedInterceptor()->all_can_read()) return true; + if (it->GetInterceptor()->all_can_read()) return true; } } return false;