Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 0d5b2b26f3f39a8917d33041261592897b504beb..7290a2cf1cef2611efc35a6943fc588bb9f70dc3 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -206,8 +206,7 @@ static MaybeObject* ArrayCodeGenericCommon(Arguments* args, |
} |
} else { |
// Allocate the JS Array |
- MaybeObject* maybe_obj = |
- heap->AllocateEmptyJSArray(FAST_SMI_ONLY_ELEMENTS); |
+ MaybeObject* maybe_obj = heap->AllocateJSObject(constructor); |
if (!maybe_obj->To(&array)) return maybe_obj; |
} |