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-97.js
blob830402f265cdac3522e436c8f8fb0d769c8c08d3
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-97
6 description: >
7     Object.defineProperties - 'P' is data property, P.writable and
8     properties.writable are different values (8.12.9 step 12)
9 includes: [propertyHelper.js]
10 ---*/
13 var obj = {};
15 Object.defineProperty(obj, "foo", {
16   value: 100,
17   enumerable: true,
18   writable: false,
19   configurable: true
20 });
22 Object.defineProperties(obj, {
23   foo: {
24     writable: true
25   }
26 });
27 verifyEqualTo(obj, "foo", 100);
29 verifyWritable(obj, "foo");
31 verifyEnumerable(obj, "foo");
33 verifyConfigurable(obj, "foo");
35 reportCompare(0, 0);