| 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.12-2-c-2 |
| 6 |
description: > |
| 7 |
Object.isFrozen returns false if 'O' contains own configurable |
| 8 |
accessor property |
| 9 |
---*/ |
| 10 |
|
| 11 |
var obj = {}; |
| 12 |
|
| 13 |
function get_func() { |
| 14 |
return 10; |
| 15 |
} |
| 16 |
|
| 17 |
function set_func() {} |
| 18 |
|
| 19 |
Object.defineProperty(obj, "foo", { |
| 20 |
get: get_func, |
| 21 |
set: set_func, |
| 22 |
configurable: true |
| 23 |
}); |
| 24 |
|
| 25 |
Object.preventExtensions(obj); |
| 26 |
|
| 27 |
assert.sameValue(Object.isFrozen(obj), false, 'Object.isFrozen(obj)'); |