Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperties/15.2.3.7-6-a-53.js

raw
1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
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 ---*/
11
12
13 var obj = {};
14
15 var obj1 = {
16 length: 10
17 };
18 var desc = {
19 value: obj1
20 };
21 Object.defineProperty(obj, "foo", desc);
22
23 Object.defineProperties(obj, {
24 foo: {
25 value: obj1
26 }
27 });
28 verifyEqualTo(obj, "foo", obj1);
29
30 verifyNotWritable(obj, "foo");
31
32 verifyNotEnumerable(obj, "foo");
33
34 verifyNotConfigurable(obj, "foo");