| 1 |
// Copyright (c) 2012 Ecma International. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
es5id: 15.2.3.9-2-a-4 |
| 6 |
description: Object.freeze - 'P' is own accessor property |
| 7 |
includes: [propertyHelper.js] |
| 8 |
---*/ |
| 9 |
|
| 10 |
var obj = {}; |
| 11 |
|
| 12 |
Object.defineProperty(obj, "foo", { |
| 13 |
get: function() { |
| 14 |
return 10; |
| 15 |
}, |
| 16 |
configurable: true |
| 17 |
}); |
| 18 |
|
| 19 |
Object.freeze(obj); |
| 20 |
|
| 21 |
verifyNotConfigurable(obj, "foo"); |
| 22 |
assert.sameValue(obj.foo, 10); |