Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 0c7a5dfb828cccb183b2b27cfa77ad3efe044e52..00d01001240acac63c91356ffe00fdda5a96fe3f 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -544,6 +544,7 @@ void ArrayLiteral::BuildConstantElements(Isolate* isolate) { |
if (array_index != values()->length()) { |
JSArray::SetLength(array, array_index); |
} |
+ JSObject::ValidateElements(array); |
Handle<FixedArrayBase> element_values(array->elements()); |
// Simple and shallow arrays can be lazily copied, we transform the |