| 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-13 |
| 6 |
description: Object.freeze - 'P' is own index property of the Object |
| 7 |
includes: [propertyHelper.js] |
| 8 |
---*/ |
| 9 |
|
| 10 |
|
| 11 |
// default [[Configurable]] attribute value of "0": true |
| 12 |
var obj = { |
| 13 |
0: 0, |
| 14 |
1: 1, |
| 15 |
length: 2 |
| 16 |
}; |
| 17 |
|
| 18 |
Object.freeze(obj); |
| 19 |
|
| 20 |
verifyNotWritable(obj, "0"); |
| 21 |
verifyNotConfigurable(obj, "0"); |
| 22 |
|
| 23 |
assert.sameValue(obj[0], 0); |