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-a-function-object-that-uses-object-s-get-own-property.js
blobdb8ba4f6d3112f0136c353823278f39c6ea69293
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 a Function object that uses
8     Object's [[GetOwnProperty]]
9 includes: [propertyHelper.js]
10 ---*/
12 var obj = function() {};
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);