Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 4e3d640adc27e29ce6e3f06016422d68ffef7cd8..7b058677a3f2f675ab5864772d7be209612a4be2 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -992,11 +992,8 @@ BUILTIN(ArrayConcat) { |
ArrayStorageAllocationMode mode = |
has_double && IsFastObjectElementsKind(elements_kind) |
? INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE : DONT_INITIALIZE_ARRAY_ELEMENTS; |
- Handle<JSArray> result_array = |
- isolate->factory()->NewJSArray(elements_kind, |
- result_len, |
- result_len, |
- mode); |
+ Handle<JSArray> result_array = isolate->factory()->NewJSArray( |
+ elements_kind, result_len, result_len, WEAK, mode); |
if (result_len == 0) return *result_array; |
int j = 0; |