Index: src/lookup.cc |
diff --git a/src/lookup.cc b/src/lookup.cc |
index 75d460328daf13eba580f8db59ba47afd9780b0b..7d9f79168b8ec8969d83c03ef12ec040a817b13f 100644 |
--- a/src/lookup.cc |
+++ b/src/lookup.cc |
@@ -117,7 +117,8 @@ |
void LookupIterator::ReloadHolderMap() { |
DCHECK_EQ(DATA, state_); |
DCHECK(IsElement()); |
- DCHECK(JSObject::cast(*holder_)->HasFixedTypedArrayElements()); |
+ DCHECK(JSObject::cast(*holder_)->HasExternalArrayElements() || |
+ JSObject::cast(*holder_)->HasFixedTypedArrayElements()); |
if (*holder_map_ != holder_->map()) { |
holder_map_ = handle(holder_->map(), isolate_); |
} |
@@ -160,6 +161,7 @@ |
DCHECK(HolderIsReceiverOrHiddenPrototype()); |
Handle<JSObject> holder = GetHolder<JSObject>(); |
if (IsElement()) { |
+ DCHECK(!holder->HasExternalArrayElements()); |
DCHECK(!holder->HasFixedTypedArrayElements()); |
DCHECK(attributes != NONE || !holder->HasFastElements()); |
Handle<FixedArrayBase> elements(holder->elements()); |