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-203.js
blob49840159a23a722364633509afcb4d7743befdc6
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-203
6 description: >
7     Object.defineProperty - 'O' is an Array, 'name' is an array index
8     named property, 'name' property doesn't exist in 'O' and
9     [[Configurable]] is absent in data descriptor 'desc', test
10     [[Configurable]] of property 'name' is set to false (15.4.5.1 step
11     4.c)
12 includes: [propertyHelper.js]
13 ---*/
15 var arrObj = [];
17 Object.defineProperty(arrObj, "0", {
18   value: 1001,
19   writable: true,
20   enumerable: true
21 });
23 verifyProperty(arrObj, "0", {
24   value: 1001,
25   writable: true,
26   enumerable: true,
27   configurable: false,
28 });
30 reportCompare(0, 0);