Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperties/15.2.3.7-6-a-56.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-56
6 description: >
7 Object.defineProperties - desc.writable and P.writable are two
8 boolean values with different values (8.12.9 step 6)
9 includes: [propertyHelper.js]
10 ---*/
11
12
13 var obj = {};
14
15 var desc = {
16 writable: false,
17 configurable: true
18 };
19 Object.defineProperty(obj, "foo", desc);
20
21 Object.defineProperties(obj, {
22 foo: {
23 writable: true,
24 configurable: true
25 }
26 });
27 verifyEqualTo(obj, "foo", undefined);
28
29 verifyWritable(obj, "foo");
30
31 verifyNotEnumerable(obj, "foo");
32
33 verifyConfigurable(obj, "foo");