Commit 5ee2ea3c authored by cbruni's avatar cbruni Committed by Commit bot

Preserve the ElementsKind in builtin.cc Slice early return

LOG=N

BUG=chromium:531348

Review URL: https://codereview.chromium.org/1344493004

Cr-Commit-Position: refs/heads/master@{#30711}
parent e7fb2339
...@@ -527,7 +527,7 @@ BUILTIN(ArraySlice) { ...@@ -527,7 +527,7 @@ BUILTIN(ArraySlice) {
if (actual_end <= actual_start) { if (actual_end <= actual_start) {
Handle<JSArray> result_array = Handle<JSArray> result_array =
isolate->factory()->NewJSArray(GetInitialFastElementsKind(), 0, 0); isolate->factory()->NewJSArray(object->GetElementsKind(), 0, 0);
return *result_array; return *result_array;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment