| Index: src/ic/ic.cc
|
| diff --git a/src/ic/ic.cc b/src/ic/ic.cc
|
| index 68483ef4fda7a4e0b33bc097c23120af0464bf39..05255522d0d5b809250318746b895d080236c94f 100644
|
| --- a/src/ic/ic.cc
|
| +++ b/src/ic/ic.cc
|
| @@ -280,6 +280,7 @@ bool IC::ShouldRecomputeHandler(Handle<Object> receiver, Handle<String> name) {
|
| LookupIterator it(global, name, LookupIterator::OWN_SKIP_INTERCEPTOR);
|
| if (it.state() == LookupIterator::ACCESS_CHECK) return false;
|
| if (!it.IsFound()) return false;
|
| + if (!it.GetHolder<JSReceiver>()->IsJSGlobalObject()) return false;
|
| return it.property_details().cell_type() == PropertyCellType::kConstant;
|
| }
|
|
|
|
|