Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperty / 15.2.3.6-4-354-2.js
blob60ef5a8187304be7dc6249fccca2203d91117184
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-354-2
6 description: >
7     Object.defineProperty will update [[Value]] attribute of indexed
8     property 'P' successfully when [[Configurable]] attribute is true
9     and [[Writable]] attribute is false, 'A' is an Array object
10     (8.12.9 step - Note)
11 includes: [propertyHelper.js]
12 ---*/
15 var obj = [];
17 Object.defineProperty(obj, "0", {
18   value: 1001,
19   writable: false,
20   configurable: true
21 });
23 Object.defineProperty(obj, "0", {
24   value: 1002
25 });
27 verifyEqualTo(obj, "0", 1002);
29 verifyNotWritable(obj, "0");
31 verifyNotEnumerable(obj, "0");
33 verifyConfigurable(obj, "0");
35 reportCompare(0, 0);