| Index: src/lookup-inl.h
|
| diff --git a/src/lookup-inl.h b/src/lookup-inl.h
|
| index 98971390b60e1dd8674670ffa326f4546b978997..9b5927b53c3207ecf790e392f655835ed349fb81 100644
|
| --- a/src/lookup-inl.h
|
| +++ b/src/lookup-inl.h
|
| @@ -15,7 +15,7 @@ namespace internal {
|
|
|
| JSReceiver* LookupIterator::NextHolder(Map* map) {
|
| DisallowHeapAllocation no_gc;
|
| - if (map->prototype()->IsNull()) return NULL;
|
| + if (!map->prototype()->IsJSReceiver()) return NULL;
|
|
|
| JSReceiver* next = JSReceiver::cast(map->prototype());
|
| DCHECK(!next->map()->IsGlobalObjectMap() ||
|
|
|