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}
This commit is contained in:
parent
e7fb233946
commit
5ee2ea3cae
@ -527,7 +527,7 @@ BUILTIN(ArraySlice) {
|
||||
|
||||
if (actual_end <= actual_start) {
|
||||
Handle<JSArray> result_array =
|
||||
isolate->factory()->NewJSArray(GetInitialFastElementsKind(), 0, 0);
|
||||
isolate->factory()->NewJSArray(object->GetElementsKind(), 0, 0);
|
||||
return *result_array;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user