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 - fail to update [[Configurable]] attribute of
8 accessor property ([[Get]] is undefined, [[Set]] is undefined,
9 [[Enumerable]] is false, [[Configurable]] is false) to different
11 includes: [propertyHelper.js]
16 Object.defineProperty(obj, "prop", {
22 var desc1 = Object.getOwnPropertyDescriptor(obj, "prop");
25 Object.defineProperty(obj, "prop", {
29 throw new Test262Error("Expected TypeError");
31 assert(e instanceof TypeError);
33 var desc2 = Object.getOwnPropertyDescriptor(obj, "prop");
35 assert.sameValue(desc1.configurable, false);
36 assert.sameValue(desc2.configurable, false);
38 verifyNotConfigurable(obj, "prop");
40 assert(obj.hasOwnProperty("prop"));