From c30216b959a1577099fac9445d5dc4522db402f1 Mon Sep 17 00:00:00 2001 From: deathbearbrown Date: Thu, 29 Jun 2017 09:53:27 -0700 Subject: [PATCH] add esid to array/prototype/concat --- .../concat/15.4.4.4-5-b-iii-3-b-1.js | 1 + .../prototype/concat/15.4.4.4-5-c-i-1.js | 3 ++- ...ncat_array-like-length-to-string-throws.js | 1 + ...oncat_array-like-length-value-of-throws.js | 2 +- ...otype.concat_array-like-negative-length.js | 2 +- ..._array-like-primitive-non-number-length.js | 2 +- ...ototype.concat_array-like-string-length.js | 2 +- ...type.concat_array-like-to-length-throws.js | 2 +- .../Array.prototype.concat_array-like.js | 1 + ...prototype.concat_holey-sloppy-arguments.js | 1 + ...rray.prototype.concat_large-typed-array.js | 1 + .../Array.prototype.concat_length-throws.js | 1 + .../Array.prototype.concat_no-prototype.js | 1 + .../Array.prototype.concat_non-array.js | 1 + ...rototype.concat_sloppy-arguments-throws.js | 1 + ...type.concat_sloppy-arguments-with-dupes.js | 1 + ...Array.prototype.concat_sloppy-arguments.js | 1 + ...rray.prototype.concat_small-typed-array.js | 1 + ...otype.concat_spreadable-boolean-wrapper.js | 1 + ...ay.prototype.concat_spreadable-function.js | 1 + ...ototype.concat_spreadable-getter-throws.js | 1 + ...totype.concat_spreadable-number-wrapper.js | 1 + ...ray.prototype.concat_spreadable-reg-exp.js | 1 + ...ototype.concat_spreadable-sparse-object.js | 1 + ...totype.concat_spreadable-string-wrapper.js | 1 + ...Array.prototype.concat_strict-arguments.js | 1 + .../Array/prototype/concat/S15.4.4.4_A1_T1.js | 1 + .../Array/prototype/concat/S15.4.4.4_A1_T2.js | 1 + .../Array/prototype/concat/S15.4.4.4_A1_T3.js | 3 ++- .../Array/prototype/concat/S15.4.4.4_A1_T4.js | 1 + .../Array/prototype/concat/S15.4.4.4_A2_T1.js | 1 + .../Array/prototype/concat/S15.4.4.4_A2_T2.js | 1 + .../Array/prototype/concat/S15.4.4.4_A3_T1.js | 25 ++++++++++--------- .../Array/prototype/concat/S15.4.4.4_A3_T2.js | 1 + .../Array/prototype/concat/S15.4.4.4_A3_T3.js | 1 + .../concat/is-concat-spreadable-get-err.js | 1 + .../concat/is-concat-spreadable-val-falsey.js | 1 + .../concat/is-concat-spreadable-val-truthy.js | 1 + .../is-concat-spreadable-val-undefined.js | 1 + test/built-ins/Array/prototype/concat/name.js | 1 + 40 files changed, 54 insertions(+), 19 deletions(-) diff --git a/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js b/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js index 5d7c7ad6a7..121bcd6df9 100644 --- a/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js +++ b/test/built-ins/Array/prototype/concat/15.4.4.4-5-b-iii-3-b-1.js @@ -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 diff --git a/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js b/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js index ffbe3c161e..f51ca7107e 100644 --- a/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js +++ b/test/built-ins/Array/prototype/concat/15.4.4.4-5-c-i-1.js @@ -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; diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js index 176c632cfd..d4e40a504d 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-to-string-throws.js @@ -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 ---*/ diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-value-of-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-value-of-throws.js index 982d38769d..e8b719cb82 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-value-of-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-length-value-of-throws.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 length valueOf throws ---*/ diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-negative-length.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-negative-length.js index e5c901845b..95f3085c19 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-negative-length.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-negative-length.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 negative length includes: [compareArray.js] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js index 01a242c3b1..dc8cdf3761 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-primitive-non-number-length.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] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js index d47ef8c6f3..d01ac6015d 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-string-length.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] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js index d0b7458dfa..5e281f58bb 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-to-length-throws.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 ---*/ diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js index 3cfe7e59b7..29e6fcb70a 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like.js @@ -4,6 +4,7 @@ /*--- +esid: sec-array.prototype.concat es6id: 22.1.3.1_3 description: Array.prototype.concat array like includes: [compareArray.js] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js index 8519574a0b..e4d2c39394 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_holey-sloppy-arguments.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] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js index d5f4e0e966..25a36478d2 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_large-typed-array.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] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js index 4f40007370..e5d0886172 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_length-throws.js @@ -4,6 +4,7 @@ /*--- +esid: sec-array.prototype.concat es6id: 22.1.3.1_3 description: Array.prototype.concat length throws ---*/ diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_no-prototype.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_no-prototype.js index ebd38238a8..fc4ace9935 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_no-prototype.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_no-prototype.js @@ -4,6 +4,7 @@ /*--- +esid: sec-array.prototype.concat es6id: 22.1.3.1_3 description: Array.prototype.concat no prototype ---*/ diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js index a6ed1b23cf..f6ed9cf11a 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_non-array.js @@ -4,6 +4,7 @@ /*--- +esid: sec-array.prototype.concat es6id: 22.1.3.1_3 description: array-concat-non-array includes: [compareArray.js] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js index f13263f9bc..37c6af8449 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-throws.js @@ -4,6 +4,7 @@ /*--- +esid: sec-array.prototype.concat es6id: 22.1.3.1_3 description: Array.prototype.concat sloppy arguments throws ---*/ diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js index 7bbc327327..5e5881c169 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments-with-dupes.js @@ -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] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js index 3cfc75df5e..11c793a49f 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_sloppy-arguments.js @@ -4,6 +4,7 @@ /*--- +esid: sec-array.prototype.concat es6id: 22.1.3.1_3 description: Array.prototype.concat sloppy arguments includes: [compareArray.js] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js index b126c746f3..01e03afcfd 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_small-typed-array.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] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js index b62193df4e..be34907af1 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-boolean-wrapper.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] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js index 8a1d0edacb..dfdadb3061 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-function.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] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js index 98e7d98de0..23fe010c77 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-getter-throws.js @@ -4,6 +4,7 @@ /*--- +esid: sec-array.prototype.concat es6id: 22.1.3.1_3 description: Array.prototype.concat Symbol.isConcatSpreadable getter throws ---*/ diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js index 3319415333..80a08ab9a6 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-number-wrapper.js @@ -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] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js index f3c60a3658..9936d33abb 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-reg-exp.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] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js index e657331386..068e83e42b 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-sparse-object.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] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-string-wrapper.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-string-wrapper.js index 3983b68fcd..dc0a133642 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-string-wrapper.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_spreadable-string-wrapper.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] diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js index 5c24876d17..33a1cb9ca8 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_strict-arguments.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] diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js index 36d3ff5034..c1ee6c4574 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.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 diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js index 7d1da5e998..9fde438042 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.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 diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js index e203f6bb12..e6f7b84967 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.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 @@ -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) { diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js index 6afd036400..dd169e3831 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.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 diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js index d43343453a..5f87242077 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js @@ -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 diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T2.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T2.js index a1e2986daf..dbc3e4ab8b 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T2.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A2_T2.js @@ -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 diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js index d7047cf7b9..e98d9e41d8 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js @@ -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'))); } diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js index 68dc0eab1a..b58435329b 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js @@ -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: > diff --git a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js index f85c78b1bc..c86f736cbe 100644 --- a/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js +++ b/test/built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js @@ -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: > diff --git a/test/built-ins/Array/prototype/concat/is-concat-spreadable-get-err.js b/test/built-ins/Array/prototype/concat/is-concat-spreadable-get-err.js index a738d71757..83612fe380 100644 --- a/test/built-ins/Array/prototype/concat/is-concat-spreadable-get-err.js +++ b/test/built-ins/Array/prototype/concat/is-concat-spreadable-get-err.js @@ -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). diff --git a/test/built-ins/Array/prototype/concat/is-concat-spreadable-val-falsey.js b/test/built-ins/Array/prototype/concat/is-concat-spreadable-val-falsey.js index 2ff31610e0..491445e0d5 100644 --- a/test/built-ins/Array/prototype/concat/is-concat-spreadable-val-falsey.js +++ b/test/built-ins/Array/prototype/concat/is-concat-spreadable-val-falsey.js @@ -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` diff --git a/test/built-ins/Array/prototype/concat/is-concat-spreadable-val-truthy.js b/test/built-ins/Array/prototype/concat/is-concat-spreadable-val-truthy.js index adc58f3e78..4e143f56dd 100644 --- a/test/built-ins/Array/prototype/concat/is-concat-spreadable-val-truthy.js +++ b/test/built-ins/Array/prototype/concat/is-concat-spreadable-val-truthy.js @@ -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` diff --git a/test/built-ins/Array/prototype/concat/is-concat-spreadable-val-undefined.js b/test/built-ins/Array/prototype/concat/is-concat-spreadable-val-undefined.js index f3be6a35dc..41b8906de1 100644 --- a/test/built-ins/Array/prototype/concat/is-concat-spreadable-val-undefined.js +++ b/test/built-ins/Array/prototype/concat/is-concat-spreadable-val-undefined.js @@ -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` diff --git a/test/built-ins/Array/prototype/concat/name.js b/test/built-ins/Array/prototype/concat/name.js index beac1601bc..7150af9491 100644 --- a/test/built-ins/Array/prototype/concat/name.js +++ b/test/built-ins/Array/prototype/concat/name.js @@ -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".