| 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;
|
|
|