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
7 function generate_dictionary_array() {
8 var result = [0, 1, 2, 3, 4];
9 result[256 * 1024] = 5;
13 function get_accessor(a, i) {
17 var array1 = generate_dictionary_array();
18 get_accessor(array1, 1);
19 get_accessor(array1, 2);
20 get_accessor(12345, 2);