Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / seal / object-seal-configurable-attribute-of-own-data-property-of-o-is-set-from-true-to-false-and-other-attributes-of-the-property-are-unaltered.js
blob3ab85abfc658652b462d9e6c0c696a0672c8de9c
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: >
7     Object.seal - the [[Configurable]] attribute of own data property
8     of 'O' is set from true to false and other attributes of the
9     property are unaltered
10 includes: [propertyHelper.js]
11 ---*/
13 var obj = {};
15 Object.defineProperty(obj, "foo", {
16   value: 10,
17   writable: true,
18   enumerable: true,
19   configurable: true
20 });
21 var preCheck = Object.isExtensible(obj);
22 Object.seal(obj);
24 if (!preCheck) {
25   throw new Test262Error('Expected preCheck to be true, actually ' + preCheck);
28 verifyProperty(obj, "foo", {
29   value: 10,
30   writable: true,
31   enumerable: true,
32   configurable: false,
33 });
35 reportCompare(0, 0);