blob: 7fa434696f8d48fc4d72f42903db6e3b3842c8cc [file] [log] [blame]
keith_miller@apple.combcc77f22016-07-15 06:03:25 +00001// Copyright (c) 2012 Ecma International. All rights reserved.
2// This code is governed by the BSD license found in the LICENSE file.
3
4/*---
5es5id: 15.2.3.7-6-a-179
6description: >
7 Object.defineProperties - 'O' is an Array, 'P' is an array index
8 named property, 'P' is boundary value 2^32 - 2 (15.4.5.1 step 4.a)
9---*/
10
11 var arr = [];
12
13 Object.defineProperties(arr, {
14 "4294967294": {
15 value: 100
16 }
17 });
18
19assert(arr.hasOwnProperty("4294967294"), 'arr.hasOwnProperty("4294967294") !== true');
20assert.sameValue(arr.length, 4294967295, 'arr.length');
21assert.sameValue(arr[4294967294], 100, 'arr[4294967294]');