Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Unified Diff: src/objects.cc

Issue 1155503003: Adjust GetPropertyWithFailedAccessCheck to support elements (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698