1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
7 Object.freeze - The [[Configurable]] attribute of own data
8 property of 'O' is set to false while other attributes are
10 includes: [propertyHelper.js]
15 Object.defineProperty(obj, "foo", {
24 var desc = Object.getOwnPropertyDescriptor(obj, "foo");
26 if (desc.configurable !== false) {
27 throw new Test262Error("Expected desc.configurable to be false, actually " + desc.configurable);
29 if (desc.writable !== false) {
30 throw new Test262Error("Expected desc.writable to be false, actually " + desc.writable);
33 verifyEqualTo(obj, "foo", 10);
35 verifyNotWritable(obj, "foo");
37 verifyEnumerable(obj, "foo");
39 verifyNotConfigurable(obj, "foo");