1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
5 es5id: 15.2.3.6-4-82-20
7 Object.defineProperty - Update [[Enumerable]] attribute of 'name'
8 property to false successfully when [[Enumerable]] and
9 [[Configurable]] attributes of 'name' property are true, the
10 'desc' is a generic descriptor which contains [Enumerable]]
11 attribute as false and [[Configurable]] property is true, 'name'
12 property is an index accessor property (8.12.9 step 8)
13 includes: [propertyHelper.js]
18 obj.verifySetFunction = "data";
19 var get_func = function() {
20 return obj.verifySetFunction;
22 var set_func = function(value) {
23 obj.verifySetFunction = value;
25 Object.defineProperty(obj, "0", {
32 Object.defineProperty(obj, "0", {
37 verifyEqualTo(obj, "0", get_func());
39 verifyWritable(obj, "0", "verifySetFunction");
41 verifyNotEnumerable(obj, "0");
43 verifyConfigurable(obj, "0");