Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperties/15.2.3.7-6-a-47.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-47
6 description: >
7 Object.defineProperties - desc.value and P.value are two numbers
8 with the same value (8.12.9 step 6)
9 includes: [propertyHelper.js]
10 ---*/
11
12
13 var obj = {};
14
15 var desc = {
16 value: 101
17 };
18 Object.defineProperty(obj, "foo", desc);
19
20 Object.defineProperties(obj, {
21 foo: {
22 value: 101
23 }
24 });
25 verifyEqualTo(obj, "foo", 101);
26
27 verifyNotWritable(obj, "foo");
28
29 verifyNotEnumerable(obj, "foo");
30
31 verifyNotConfigurable(obj, "foo");