Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index e3b47427e38251435c4d4ab36f7498d7ec34029b..e3b0c8efe700816979f7a7c6aece22ba39874832 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -2165,6 +2165,10 @@ int JSObject::GetHeaderSize(InstanceType type) { |
case JS_MODULE_NAMESPACE_TYPE: |
return JSModuleNamespace::kSize; |
default: |
+ if (type >= FIRST_ARRAY_ITERATOR_TYPE && |
+ type <= LAST_ARRAY_ITERATOR_TYPE) { |
+ return JSArrayIterator::kSize; |
+ } |
UNREACHABLE(); |
return 0; |
} |