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-53.js
blob47a8e4d761897d4797227f844be0a2caf02a137d
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-53
6 description: >
7     Object.defineProperties - both desc.value and P.value are Ojbects
8     which refer to the same Object (8.12.9 step 6)
9 includes: [propertyHelper.js]
10 ---*/
13 var obj = {};
15 var obj1 = {
16   length: 10
18 var desc = {
19   value: obj1
21 Object.defineProperty(obj, "foo", desc);
23 Object.defineProperties(obj, {
24   foo: {
25     value: obj1
26   }
27 });
28 verifyEqualTo(obj, "foo", obj1);
30 verifyNotWritable(obj, "foo");
32 verifyNotEnumerable(obj, "foo");
34 verifyNotConfigurable(obj, "foo");
36 reportCompare(0, 0);