Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperties / 15.2.3.7-6-a-246.js
blob193596163ac3befbf2a398c268948700b0c8f9d9
1 // Copyright (c) 2012 Ecma International.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
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 ---*/
17 var arr = [];
19 Object.defineProperty(arr, "1", {
20   get: undefined
21 });
23 Object.defineProperties(arr, {
24   "1": {
25     get: undefined
26   }
27 });
29 verifyProperty(arr, "1", {
30   enumerable: false,
31   configurable: false,
32 });
34 reportCompare(0, 0);