Debian Codegraph @

js/src/tests/test262/built-ins/Object/seal/object-seal-p-is-own-data-property.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 esid: sec-setintegritylevel
6 description: Object.seal - 'P' is own data property
7 includes: [propertyHelper.js]
8 ---*/
9
10 var obj = {};
11
12 obj.foo = 10; // default [[Configurable]] attribute value of foo: true
13
14 assert(Object.isExtensible(obj));
15 Object.seal(obj);
16
17 verifyProperty(obj, "foo", {
18 value: 10,
19 configurable: false,
20 });
21
22 reportCompare(0, 0);