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-531-1
7 Object.defineProperty will update [[Get]] and [[Set]] attributes
8 of named accessor property 'P' successfully when [[Configurable]]
9 attribute is true, 'O' is an Object object (8.12.9 step 11)
10 includes: [propertyHelper.js]
15 obj.verifySetFunction = "data";
16 Object.defineProperty(obj, "property", {
18 return obj.verifySetFunction;
20 set: function(value) {
21 obj.verifySetFunction = value;
26 obj.verifySetFunction1 = "data1";
27 var getFunc = function() {
28 return obj.verifySetFunction1;
30 var setFunc = function(value) {
31 obj.verifySetFunction1 = value;
34 Object.defineProperty(obj, "property", {
39 verifyEqualTo(obj, "property", getFunc());
41 verifyWritable(obj, "property", "verifySetFunction1");
43 verifyProperty(obj, "property", {