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-41.js
blobf7d9be5dc494fbc3eb2b3269c86487230bf0a9ad
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-41
6 description: >
7     Object.defineProperties - type of desc.value is different from
8     type of P.value (8.12.9 step 6)
9 includes: [propertyHelper.js]
10 ---*/
13 var obj = {};
15 obj.foo = 101; // default value of attributes: writable: true, configurable: true, enumerable: true
17 Object.defineProperties(obj, {
18   foo: {
19     value: "102"
20   }
21 });
22 verifyEqualTo(obj, "foo", "102");
24 verifyWritable(obj, "foo");
26 verifyEnumerable(obj, "foo");
28 verifyConfigurable(obj, "foo");
30 reportCompare(0, 0);