1 // Copyright 2014 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.
5 // Flags: --allow-natives-syntax
9 // Required to reproduce the bug.
10 assertTrue(%HasDictionaryElements(b));
14 assertEquals(1.5, ([].concat(b))[0]);
16 var a2 = new Int32Array(2);
19 assertEquals(3, ([].concat(b))[0]);
24 assertTrue(%HasDictionaryElements(a));
26 a.__proto__ = arguments;
28 for (var i = 0; i < arguments.length; i++) {
29 assertEquals(i + 2, c[i]);
31 assertEquals(undefined, c[arguments.length]);
32 assertEquals(undefined, c[arguments.length + 1]);