Chromium Code Reviews| Index: src/ic/ic.cc |
| diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
| index ef8e069fda99301efa30c9223af4253e221a7442..d4a0e7251b13dd4eac56836f978c0cefb7a24a43 100644 |
| --- a/src/ic/ic.cc |
| +++ b/src/ic/ic.cc |
| @@ -249,8 +249,7 @@ static void LookupForRead(LookupIterator* it) { |
| case LookupIterator::ACCESS_CHECK: |
| // PropertyHandlerCompiler::CheckPrototypes() knows how to emit |
| // access checks for global proxies. |
| - if (it->GetHolder<JSObject>()->IsJSGlobalProxy() && |
| - it->HasAccess(v8::ACCESS_GET)) { |
| + if (it->GetHolder<JSObject>()->IsJSGlobalProxy() && it->HasAccess()) { |
| break; |
| } |
| return; |