Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperties / 15.2.3.7-6-a-2.js
blob19de43a79c47f0fdae7203bba529ac366faf44b9
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 es5id: 15.2.3.7-6-a-2
6 description: >
7     Object.defineProperties - 'P' is inherited data property (8.12.9
8     step 1 )
9 includes: [propertyHelper.js]
10 ---*/
12 var proto = {};
13 Object.defineProperty(proto, "prop", {
14   value: 11,
15   configurable: false
16 });
17 var Con = function() {};
18 Con.prototype = proto;
20 var obj = new Con();
22 Object.defineProperties(obj, {
23   prop: {
24     value: 12,
25     configurable: true
26   }
27 });
29 verifyEqualTo(obj, "prop", 12);
31 verifyNotWritable(obj, "prop");
33 verifyNotEnumerable(obj, "prop");
35 verifyConfigurable(obj, "prop");
37 reportCompare(0, 0);