mirror of https://github.com/tc39/test262.git
add esid to array/prototype/concat
This commit is contained in:
parent
26ef14c315
commit
c30216b959
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es5id: 15.4.4.4-5-b-iii-3-b-1
|
||||
description: >
|
||||
Array.prototype.concat will concat an Array when index property
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es5id: 15.4.4.4-5-c-i-1
|
||||
description: >
|
||||
Array.prototype.concat will concat an Array when index property
|
||||
|
@ -19,7 +20,7 @@ description: >
|
|||
var hasProperty = newArr.hasOwnProperty("0");
|
||||
|
||||
var instanceOfVerify = typeof newArr[0]==="object";
|
||||
|
||||
|
||||
var verifyValue = false;
|
||||
verifyValue = newArr[0] == 101;
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
// found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat array like length to string throws
|
||||
---*/
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat array like length valueOf throws
|
||||
---*/
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat array like negative length
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat array like primitive non number length
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat array like string length
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat array like to length throws
|
||||
---*/
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat array like
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat holey sloppy arguments
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat large typed array
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat length throws
|
||||
---*/
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat no prototype
|
||||
---*/
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: array-concat-non-array
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat sloppy arguments throws
|
||||
---*/
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat sloppy arguments with dupes
|
||||
flags: [noStrict]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat sloppy arguments
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat small typed array
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat Symbol.isConcatSpreadable boolean wrapper
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat Symbol.isConcatSpreadable function
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat Symbol.isConcatSpreadable getter throws
|
||||
---*/
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat Symbol.isConcatSpreadable number wrapper
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat Symbol.isConcatSpreadable reg exp
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat Symbol.isConcatSpreadable sparse object
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat Symbol.isConcatSpreadable string wrapper
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1_3
|
||||
description: Array.prototype.concat strict arguments
|
||||
includes: [compareArray.js]
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
info: >
|
||||
When the concat method is called with zero or more arguments item1, item2,
|
||||
etc., it returns an array containing the array elements of the object followed by
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
info: >
|
||||
When the concat method is called with zero or more arguments item1, item2,
|
||||
etc., it returns an array containing the array elements of the object followed by
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
info: >
|
||||
When the concat method is called with zero or more arguments item1, item2,
|
||||
etc., it returns an array containing the array elements of the object followed by
|
||||
|
@ -32,7 +33,7 @@ if (arr[1] !== 1) {
|
|||
//CHECK#3
|
||||
if (arr.length !== 2) {
|
||||
$ERROR('#3: var x = [0,1]; var arr = x.concat(); arr.length === 2. Actual: ' + (arr.length));
|
||||
}
|
||||
}
|
||||
|
||||
//CHECK#4
|
||||
if (arr === x) {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
info: >
|
||||
When the concat method is called with zero or more arguments item1, item2,
|
||||
etc., it returns an array containing the array elements of the object followed by
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
info: >
|
||||
The concat function is intentionally generic.
|
||||
It does not require that its this value be an Array object
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
info: >
|
||||
The concat function is intentionally generic.
|
||||
It does not require that its this value be an Array object
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
info: "[[Get]] from not an inherited property"
|
||||
es5id: 15.4.4.4_A3_T1
|
||||
description: >
|
||||
|
@ -15,18 +16,18 @@ x.length = 2;
|
|||
var arr = x.concat();
|
||||
|
||||
//CHECK#1
|
||||
if (arr[0] !== 0) {
|
||||
$ERROR('#1: Array.prototype[1] = 1; x = [0]; x.length = 2; var arr = x.concat(); arr[0] === 0. Actual: ' + (arr[0]));
|
||||
if (arr[0] !== 0) {
|
||||
$ERROR('#1: Array.prototype[1] = 1; x = [0]; x.length = 2; var arr = x.concat(); arr[0] === 0. Actual: ' + (arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#2
|
||||
if (arr[1] !== 1) {
|
||||
$ERROR('#2: Array.prototype[1] = 1; x = [0]; x.length = 2; var arr = x.concat(); arr[1] === 1. Actual: ' + (arr[1]));
|
||||
if (arr[1] !== 1) {
|
||||
$ERROR('#2: Array.prototype[1] = 1; x = [0]; x.length = 2; var arr = x.concat(); arr[1] === 1. Actual: ' + (arr[1]));
|
||||
}
|
||||
|
||||
//CHECK#3
|
||||
if (arr.hasOwnProperty('1') !== true) {
|
||||
$ERROR('#3: Array.prototype[1] = 1; x = [0]; x.length = 2; var arr = x.concat(); arr.hasOwnProperty(\'1\') === true. Actual: ' + (arr.hasOwnProperty('1')));
|
||||
if (arr.hasOwnProperty('1') !== true) {
|
||||
$ERROR('#3: Array.prototype[1] = 1; x = [0]; x.length = 2; var arr = x.concat(); arr.hasOwnProperty(\'1\') === true. Actual: ' + (arr.hasOwnProperty('1')));
|
||||
}
|
||||
|
||||
Object.prototype[1] = 1;
|
||||
|
@ -36,16 +37,16 @@ x = {0:0};
|
|||
var arr = x.concat();
|
||||
|
||||
//CHECK#4
|
||||
if (arr[0] !== x) {
|
||||
$ERROR('#4: Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.concat = Array.prototype.concat; x = {0:0}; var arr = x.concat(); arr[0] === x. Actual: ' + (arr[0]));
|
||||
if (arr[0] !== x) {
|
||||
$ERROR('#4: Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.concat = Array.prototype.concat; x = {0:0}; var arr = x.concat(); arr[0] === x. Actual: ' + (arr[0]));
|
||||
}
|
||||
|
||||
//CHECK#5
|
||||
if (arr[1] !== 1) {
|
||||
$ERROR('#5: Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.concat = Array.prototype.concat; x = {0:0}; var arr = x.concat(); arr[1] === 1. Actual: ' + (arr[1]));
|
||||
if (arr[1] !== 1) {
|
||||
$ERROR('#5: Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.concat = Array.prototype.concat; x = {0:0}; var arr = x.concat(); arr[1] === 1. Actual: ' + (arr[1]));
|
||||
}
|
||||
|
||||
//CHECK#6
|
||||
if (arr.hasOwnProperty('1') !== false) {
|
||||
$ERROR('#6: Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.concat = Array.prototype.concat; x = {0:0}; var arr = x.concat(); arr.hasOwnProperty(\'1\') === false. Actual: ' + (arr.hasOwnProperty('1')));
|
||||
if (arr.hasOwnProperty('1') !== false) {
|
||||
$ERROR('#6: Object.prototype[1] = 1; Object.prototype.length = 2; Object.prototype.concat = Array.prototype.concat; x = {0:0}; var arr = x.concat(); arr.hasOwnProperty(\'1\') === false. Actual: ' + (arr.hasOwnProperty('1')));
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// See LICENSE or https://github.com/tc39/test262/blob/master/LICENSE
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
info: Array.prototype.concat uses [[Get]] on 'length' to determine array length
|
||||
es5id: 15.4.4.4_A3_T2
|
||||
description: >
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// See LICENSE or https://github.com/tc39/test262/blob/master/LICENSE
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
info: Array.prototype.concat uses [[Get]] on 'length' to determine array length
|
||||
es5id: 15.4.4.4_A3_T3
|
||||
description: >
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
es6id: 22.1.3.1
|
||||
esid: sec-array.prototype.concat
|
||||
description: Error thrown when accessing `Symbol.isConcatSpreadable` property
|
||||
info: >
|
||||
1. Let O be ToObject(this value).
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1
|
||||
description: >
|
||||
The `Symbol.isConcatSpreadable` property is defined and coerces to `false`
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1
|
||||
description: >
|
||||
The `Symbol.isConcatSpreadable` property is defined and coerces to `true`
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1
|
||||
description: >
|
||||
The `Symbol.isConcatSpreadable` property is defined as the value `undefined`
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.concat
|
||||
es6id: 22.1.3.1
|
||||
description: >
|
||||
Array.prototype.concat.name is "concat".
|
||||
|
|
Loading…
Reference in New Issue