Skip to content

Commit 8ccc696

Browse files
isheludkoCommit bot
authored andcommitted
Support concatenating with zero-size arrays with DICTIONARY_ELEMENTS in Runtime_ArrayConcat.
BUG=chromium:450895 LOG=y Review URL: https://codereview.chromium.org/849693003 Cr-Commit-Position: refs/heads/master@{#26219}
1 parent 558efe2 commit 8ccc696

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/runtime/runtime-array.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,7 @@ RUNTIME_FUNCTION(Runtime_ArrayConcat) {
850850
}
851851
case FAST_HOLEY_ELEMENTS:
852852
case FAST_ELEMENTS:
853+
case DICTIONARY_ELEMENTS:
853854
DCHECK_EQ(0, length);
854855
break;
855856
default:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright 2015 the V8 project authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// Flags: --allow-natives-syntax
6+
7+
var v = new Array();
8+
Object.freeze(v);
9+
v = v.concat(0.5);

0 commit comments

Comments
 (0)