Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperties/15.2.3.7-6-a-94.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-94
6 description: >
7 Object.defineProperties - 'P' is data property, properties.value
8 and P.value are two different values (8.12.9 step 12)
9 includes: [propertyHelper.js]
10 ---*/
11
12
13 var obj = {};
14
15 obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true
16
17 Object.defineProperties(obj, {
18 foo: {
19 value: 200
20 }
21 });
22 verifyEqualTo(obj, "foo", 200);
23
24 verifyWritable(obj, "foo");
25
26 verifyEnumerable(obj, "foo");
27
28 verifyConfigurable(obj, "foo");