Debian Codegraph @

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