Index: src/lookup.h |
diff --git a/src/lookup.h b/src/lookup.h |
index a1e39599cc4b2b0769cc2bbe041c3f28cfc291de..ffc7904b2add60da6463943b49ca5175487b448d 100644 |
--- a/src/lookup.h |
+++ b/src/lookup.h |
@@ -176,6 +176,7 @@ class LookupIterator final BASE_EMBEDDED { |
Handle<Object> GetReceiver() const { return receiver_; } |
Handle<JSObject> GetStoreTarget() const { |
+ DCHECK(receiver_->IsJSObject()); |
if (receiver_->IsJSGlobalProxy()) { |
Map* map = JSGlobalProxy::cast(*receiver_)->map(); |
if (map->has_hidden_prototype()) { |