Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperties/15.2.3.7-6-a-246.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-246
6 description: >
7 Object.defineProperties - TypeError is not thrown if ''O' is an
8 Array, 'P' is an array index named property that already exists on
9 'O' is accessor property with [[Configurable]] false, 'desc' is
10 accessor descriptor, test TypeError is not thrown if the [[Get]]
11 field of 'desc' is present, and the [[Get]] field of 'desc' and
12 the [[Get]] attribute value of 'P' are undefined (15.4.5.1 step
13 4.c)
14 includes: [propertyHelper.js]
15 ---*/
16
17 var arr = [];
18
19 Object.defineProperty(arr, "1", {
20 get: undefined
21 });
22
23 Object.defineProperties(arr, {
24 "1": {
25 get: undefined
26 }
27 });
28
29 verifyNotEnumerable(arr, "1");
30
31 verifyNotConfigurable(arr, "1");