add esid to array/prototype/concat

This commit is contained in:
deathbearbrown 2017-06-29 09:53:27 -07:00 committed by Rick Waldron
parent 26ef14c315
commit c30216b959
40 changed files with 54 additions and 19 deletions

View File

@ -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

View File

@ -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;

View File

@ -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
---*/

View File

@ -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
---*/

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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
---*/

View File

@ -4,6 +4,7 @@
/*---
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat array like
includes: [compareArray.js]

View File

@ -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]

View File

@ -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]

View File

@ -4,6 +4,7 @@
/*---
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat length throws
---*/

View File

@ -4,6 +4,7 @@
/*---
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat no prototype
---*/

View File

@ -4,6 +4,7 @@
/*---
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: array-concat-non-array
includes: [compareArray.js]

View File

@ -4,6 +4,7 @@
/*---
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat sloppy arguments throws
---*/

View File

@ -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]

View File

@ -4,6 +4,7 @@
/*---
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat sloppy arguments
includes: [compareArray.js]

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -4,6 +4,7 @@
/*---
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable getter throws
---*/

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -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]

View File

@ -4,6 +4,7 @@
/*---
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat strict arguments
includes: [compareArray.js]

View File

@ -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

View File

@ -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

View File

@ -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) {

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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')));
}

View File

@ -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: >

View File

@ -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: >

View File

@ -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).

View File

@ -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`

View File

@ -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`

View File

@ -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`

View File

@ -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".