Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperties/15.2.3.7-6-a-243.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-243
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, the [[Set]] field of 'desc' is present, and
11 the [[Set]] field of 'desc' and the [[Set]] attribute value of 'P'
12 are undefined (15.4.5.1 step 4.c)
13 includes: [propertyHelper.js]
14 ---*/
15
16 var arr = [];
17
18 Object.defineProperty(arr, "1", {
19 set: undefined
20 });
21
22 Object.defineProperties(arr, {
23 "1": {
24 set: undefined
25 }
26 });
27
28 verifyNotEnumerable(arr, "1");
29
30 verifyNotConfigurable(arr, "1");