Reviewers: Jakob,

Message:
PTAL

Description:
Adjust GetPropertyWithFailedAccessCheck to support elements

BUG=v8:4137
LOG=n

Please review this at https://codereview.chromium.org/1155503003/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+1, -2 lines):
  M src/objects.cc


Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 2061e85f0d6fb448f814c1b89027e9c625626907..7afce5a885b8e038a5a40c28437eb2036c08ecd9 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<JSObject>();
-      if (holder->GetNamedInterceptor()->all_can_read()) return true;
+      if (it->GetInterceptor()->all_can_read()) return true;
     }
   }
   return false;


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to