blob: 733fd6d9c94b3d805a3c77f5a1fbfe70dfa59b23 [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001// 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.
4
5// Flags: --allow-natives-syntax
6
7function generate_dictionary_array() {
8 var result = [0, 1, 2, 3, 4];
9 result[256 * 1024] = 5;
10 return result;
11}
12
13function get_accessor(a, i) {
14 return a[i];
15}
16
17var array1 = generate_dictionary_array();
18get_accessor(array1, 1);
19get_accessor(array1, 2);
20get_accessor(12345, 2);