Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 32a1755e3ba80f81f67974287d65eda8264666ea..7bc0f6d2f2ed6dab0329cf40674e76395cf1d2d3 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -968,6 +968,7 @@ Handle<JSArray> Factory::NewJSArrayWithElements(Handle<FixedArrayBase> elements, |
isolate(), |
isolate()->heap()->AllocateJSArrayWithElements(*elements, |
elements_kind, |
+ elements->length(), |
pretenure), |
JSArray); |
} |