tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/seal/15.2.3.8-2-a-8.js
raw| 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.8-2-a-8 |
| 6 | description: > |
| 7 | Object.seal - 'P' is own property of an Array object that uses |
| 8 | Object's [[GetOwnProperty]] |
| 9 | includes: [propertyHelper.js] |
| 10 | ---*/ |
| 11 | |
| 12 | var obj = []; |
| 13 | |
| 14 | obj.foo = 10; |
| 15 | |
| 16 | assert(Object.isExtensible(obj)); |
| 17 | Object.seal(obj); |
| 18 | |
| 19 | verifyNotConfigurable(obj, "foo"); |
| 20 | assert.sameValue(obj.foo, 10); |