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-78.js
blob2752971e2e2f31917bcfdc6d65a346c838938f88
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-78
6 description: >
7     Object.defineProperties will not throw TypeError when
8     P.configurable is false, P.writalbe is false, properties.value and
9     P.value are two numbers with the same value (8.12.9 step 10.a.ii.1)
10 includes: [propertyHelper.js]
11 ---*/
14 var obj = {};
16 Object.defineProperty(obj, "foo", {
17   value: 100,
18   writable: false,
19   configurable: false
20 });
22 Object.defineProperties(obj, {
23   foo: {
24     value: 100
25   }
26 });
27 verifyEqualTo(obj, "foo", 100);
29 verifyNotWritable(obj, "foo");
31 verifyNotEnumerable(obj, "foo");
33 verifyNotConfigurable(obj, "foo");
35 reportCompare(0, 0);