Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / seal / object-seal-p-is-own-property-of-an-error-object-that-uses-object-s-get-own-property.js
blob7989899aa853991fab905ac8db1340d249009a13
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 - 'P' is own property of an Error object that uses
8     Object's [[GetOwnProperty]]
9 includes: [propertyHelper.js]
10 ---*/
12 var obj = new Error();
14 obj.foo = 10;
16 assert(Object.isExtensible(obj));
17 Object.seal(obj);
19 verifyProperty(obj, "foo", {
20   value: 10,
21   configurable: false,
22 });
24 reportCompare(0, 0);