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 - all own properties of 'O' are not writable and not
9 includes: [propertyHelper.js]
13 var resultSetFun = false;
15 Object.defineProperty(obj, "foo1", {
30 Object.defineProperty(obj, "foo2", {
39 verifyEqualTo(obj, "foo2", 10);
41 verifyProperty(obj, "foo2", {
47 throw new Test262Error('Expected obj["foo2"] set() to be called, but was not.');
50 verifyProperty(obj, "foo2", {
55 var desc2 = Object.getOwnPropertyDescriptor(obj, "foo2");
57 throw new Test262Error('Expected obj["foo2"] to be non-writable, non-configurable; actually ' + JSON.stringify(desc2));
60 verifyProperty(obj, "foo1", {