Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperties/15.2.3.7-6-a-80.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-80
6 description: >
7 Object.defineProperties will not throw TypeError when
8 P.configurable is false, P.writalbe is false, properties.value and
9 P.value are two strings with the same value (8.12.9 step 10.a.ii.1)
10 includes: [propertyHelper.js]
11 ---*/
12
13
14 var obj = {};
15
16 Object.defineProperty(obj, "foo", {
17 value: "abcd",
18 writable: false,
19 configurable: false
20 });
21
22 Object.defineProperties(obj, {
23 foo: {
24 value: "abcd"
25 }
26 });
27 verifyEqualTo(obj, "foo", "abcd");
28
29 verifyNotWritable(obj, "foo");
30
31 verifyNotEnumerable(obj, "foo");
32
33 verifyNotConfigurable(obj, "foo");