Add missing Symbol.isConcatSpreadable feature flags

This commit is contained in:
Leo Balter 2017-09-07 18:23:24 -04:00 committed by Rick Waldron
parent 2bee5df77a
commit 72537004b0
22 changed files with 22 additions and 0 deletions

View File

@ -6,6 +6,7 @@
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat array like length to string throws
features: [Symbol.isConcatSpreadable]
---*/
function MyError() {}
var obj = {

View File

@ -6,6 +6,7 @@
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat array like length valueOf throws
features: [Symbol.isConcatSpreadable]
---*/
function MyError() {}
var obj = {

View File

@ -7,6 +7,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat array like negative length
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var obj = {
"length": -4294967294,

View File

@ -7,6 +7,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat array like primitive non number length
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var obj = {
"1": "A",

View File

@ -7,6 +7,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat array like string length
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var obj = {
"length": "6",

View File

@ -6,6 +6,7 @@
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat array like to length throws
features: [Symbol.isConcatSpreadable]
---*/
var obj = {
"length": {valueOf: null, toString: null},

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat array like
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var obj = {
"length": 6,

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat holey sloppy arguments
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var args = (function(a) { return arguments; })(1,2,3);
delete args[1];

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat large typed array
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
function concatTypedArray(type, elems, modulo) {
var items = new Array(elems);

View File

@ -7,6 +7,7 @@
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat length throws
features: [Symbol.isConcatSpreadable]
---*/
function MyError() {}
var obj = {};

View File

@ -7,6 +7,7 @@
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat sloppy arguments throws
features: [Symbol.isConcatSpreadable]
---*/
function MyError() {}
var args = (function(a) { return arguments; })(1,2,3);

View File

@ -9,6 +9,7 @@ es6id: 22.1.3.1_3
description: Array.prototype.concat sloppy arguments with dupes
flags: [noStrict]
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var args = (function(a, a, a) { return arguments; })(1,2,3);
args[Symbol.isConcatSpreadable] = true;

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat sloppy arguments
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var args = (function(a, b, c) { return arguments; })(1,2,3);
args[Symbol.isConcatSpreadable] = true;

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat small typed array
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
function concatTypedArray(type, elems, modulo) {
var items = new Array(elems);

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable boolean wrapper
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var bool = new Boolean(true)
// Boolean wrapper objects are not concat-spreadable by default

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable function
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var fn = function(a, b, c) {}
// Functions are not concat-spreadable by default

View File

@ -7,6 +7,7 @@
esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable getter throws
features: [Symbol.isConcatSpreadable]
---*/
function MyError() {}
var obj = {};

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable number wrapper
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var num = new Number(true)
// Number wrapper objects are not concat-spreadable by default

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable reg exp
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var re = /abc/;
// RegExps are not concat-spreadable by default

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable sparse object
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var obj = { length: 5 };
obj[Symbol.isConcatSpreadable] = true;

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable string wrapper
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var str1 = new String("yuck\uD83D\uDCA9")
// String wrapper objects are not concat-spreadable by default

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3
description: Array.prototype.concat strict arguments
includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/
var args = (function(a, b, c) { "use strict"; return arguments; })(1,2,3);
args[Symbol.isConcatSpreadable] = true;