1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
7 ES5 Attributes - success to update [[Configurable]] attribute of
8 accessor property ([[Get]] is a Function, [[Set]] is undefined,
9 [[Enumerable]] is true, [[Configurable]] is true) to different
11 includes: [propertyHelper.js]
16 var getFunc = function() {
20 Object.defineProperty(obj, "prop", {
26 var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
28 Object.defineProperty(obj, "prop", {
32 var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
34 assert.sameValue(desc1.configurable, true);
35 assert.sameValue(desc2.configurable, false);
37 verifyNotWritable(obj, "prop");
38 verifyNotConfigurable(obj, "prop");
40 assert(obj.hasOwnProperty("prop"));