Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 52a194180be30b9c675b83ef45d7ce06f137f45e..9fa1e12abe19253aad57c1e743863fd30ceac259 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1369,9 +1369,6 @@ Handle<JSArray> Factory::NewJSArray(ElementsKind elements_kind, |
int capacity, |
ArrayStorageAllocationMode mode, |
PretenureFlag pretenure) { |
- if (capacity != 0) { |
- elements_kind = GetHoleyElementsKind(elements_kind); |
- } |
CALL_HEAP_FUNCTION(isolate(), |
isolate()->heap()->AllocateJSArrayAndStorage( |
elements_kind, |