Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperties / 15.2.3.7-6-a-52.js
blobad4217d82992b08f4f0c927c462b5dbe42e7d2fa
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-52
6 description: >
7     Object.defineProperties - desc.value and P.value are two boolean
8     values with different values (8.12.9 step 6)
9 includes: [propertyHelper.js]
10 ---*/
13 var obj = {};
15 obj.foo = true; // default value of attributes: writable: true, configurable: true, enumerable: true
17 Object.defineProperties(obj, {
18   foo: {
19     value: false
20   }
21 });
23 verifyProperty(obj, "foo", {
24   value: false,
25   writable: true,
26   enumerable: true,
27   configurable: true,
28 });
30 reportCompare(0, 0);