blob: 213a63acc51ed01859237de6a38f9e3d60b3ccf6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.concat
description: >
Array.prototype.concat will concat an Array when index property
(read-only) exists in Array.prototype (Step 5.b.iii.3.b)
includes: [propertyHelper.js]
---*/
Object.defineProperty(Array.prototype, "0", {
value: 100,
writable: false,
configurable: true
});
var oldArr = [101];
var newArr = Array.prototype.concat.call(oldArr);
verifyProperty(newArr, "0", {
value: 101,
writable: true,
enumerable: true,
configurable: true,
});
reportCompare(0, 0);
|