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-82-18.js
blob30b44c922cd896bb30e2d7702f09d7047db89348
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-82-18
6 description: >
7     Object.defineProperty - Update [[Enumerable]] attribute of 'name'
8     property to true successfully when [[Enumerable]] attribute of
9     'name' is false and [[Configurable]] attribute of 'name' is true,
10     the 'desc' is a generic descriptor which only contains
11     [[Enumerable]] attribute as true, 'name' property is an index data
12     property (8.12.9 step 8)
13 includes: [propertyHelper.js]
14 ---*/
17 var obj = {};
19 Object.defineProperty(obj, "0", {
20   value: 1001,
21   writable: true,
22   enumerable: false,
23   configurable: true
24 });
26 Object.defineProperty(obj, "0", {
27   enumerable: true
28 });
30 verifyEqualTo(obj, "0", 1001);
32 verifyWritable(obj, "0");
34 verifyEnumerable(obj, "0");
36 verifyConfigurable(obj, "0");
38 reportCompare(0, 0);