| Index: src/factory.h
|
| diff --git a/src/factory.h b/src/factory.h
|
| index 6321132f441f17564262d73b47ec49cc9852f407..e838ec6a41da784f4ce1648262f58692d8faa3aa 100644
|
| --- a/src/factory.h
|
| +++ b/src/factory.h
|
| @@ -336,6 +336,9 @@ class Factory V8_FINAL {
|
| int capacity,
|
| ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
|
| PretenureFlag pretenure = NOT_TENURED) {
|
| + if (capacity != 0) {
|
| + elements_kind = GetHoleyElementsKind(elements_kind);
|
| + }
|
| return NewJSArray(elements_kind, 0, capacity,
|
| INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE, pretenure);
|
| }
|
|
|