Index: src/lookup.h |
diff --git a/src/lookup.h b/src/lookup.h |
index 5f7a293e36fdf5ecf55bb3e192509bfd7ad8da17..e0b40c40fe21c9650f266baf3cdd10ad9473d656 100644 |
--- a/src/lookup.h |
+++ b/src/lookup.h |
@@ -288,7 +288,7 @@ |
void NextInternal(Map* map, JSReceiver* holder); |
template <bool is_element> |
inline State LookupInHolder(Map* map, JSReceiver* holder) { |
- return map->IsSpecialReceiverMap() |
+ return map->instance_type() <= LAST_SPECIAL_RECEIVER_TYPE |
? LookupInSpecialHolder<is_element>(map, holder) |
: LookupInRegularHolder<is_element>(map, holder); |
} |