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-64.js
blobfe97b64dd8f76c969c3018b7212358c729b08eac
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-64
6 description: >
7     Object.defineProperties - desc.configurable and P.configurable are
8     two boolean values with different values (8.12.9 step 6)
9 includes: [propertyHelper.js]
10 ---*/
13 var obj = {};
15 Object.defineProperty(obj, "foo", {
16   value: 10,
17   configurable: true
18 });
20 Object.defineProperties(obj, {
21   foo: {
22     configurable: false
23   }
24 });
25 verifyEqualTo(obj, "foo", 10);
27 verifyNotWritable(obj, "foo");
29 verifyNotEnumerable(obj, "foo");
31 verifyNotConfigurable(obj, "foo");
33 reportCompare(0, 0);