Reviewers: dcarney,
Message:
PTAL
Description:
Don't perform access checks for internally used properties
BUG=
Please review this at https://codereview.chromium.org/956283003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+4, -1 lines):
M src/lookup-inl.h
Index: src/lookup-inl.h
diff --git a/src/lookup-inl.h b/src/lookup-inl.h
index
ffc02e78783adefdd8216ef09313403f857d6b8b..50f4b0fcc9ddad89849b64fa71183077f8f97480
100644
--- a/src/lookup-inl.h
+++ b/src/lookup-inl.h
@@ -38,7 +38,10 @@ LookupIterator::State
LookupIterator::LookupInHolder(Map* map,
switch (state_) {
case NOT_FOUND:
if (map->IsJSProxyMap()) return JSPROXY;
- if (map->is_access_check_needed()) return ACCESS_CHECK;
+ if (map->is_access_check_needed() &&
+ !isolate_->IsInternallyUsedPropertyName(name_)) {
+ return ACCESS_CHECK;
+ }
// Fall through.
case ACCESS_CHECK:
if (check_interceptor() && map->has_named_interceptor()) {
--
--
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.