Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperty / 15.2.3.6-4-263.js
blobc0caa9fd90f0e91f73a591bf55dc136e0d54e930
1 // Copyright (c) 2012 Ecma International.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 es5id: 15.2.3.6-4-263
6 description: >
7     Object.defineProperty - 'O' is an Array, 'name' is an array index
8     named property, name is data property and 'desc' is data
9     descriptor, test updating the [[Configurable]] attribute value of
10     'name' (15.4.5.1 step 4.c)
11 includes: [propertyHelper.js]
12 ---*/
15 var arrObj = [100];
17 Object.defineProperty(arrObj, "0", {
18   configurable: false
19 });
21 verifyProperty(arrObj, "0", {
22   value: 100,
23   writable: true,
24   enumerable: true,
25   configurable: false,
26 });
28 reportCompare(0, 0);