Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / Object / seal / object-seal-p-is-own-data-property.js
blobd19e947979fdd3ad44f6bc40bb4c6afb4a97ab10
1 // Copyright (c) 2012 Ecma International.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-setintegritylevel
6 description: Object.seal - 'P' is own data property
7 includes: [propertyHelper.js]
8 ---*/
10 var obj = {};
12 obj.foo = 10; // default [[Configurable]] attribute value of foo: true
14 assert(Object.isExtensible(obj));
15 Object.seal(obj);
17 verifyNotConfigurable(obj, "foo");
18 assert.sameValue(obj.foo, 10);
20 reportCompare(0, 0);