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 esid: sec-array.prototype.concat
es6id: 22.1.3.1_3 es6id: 22.1.3.1_3
description: Array.prototype.concat array like length to string throws description: Array.prototype.concat array like length to string throws
features: [Symbol.isConcatSpreadable]
---*/ ---*/
function MyError() {} function MyError() {}
var obj = { var obj = {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,6 +7,7 @@
esid: sec-array.prototype.concat esid: sec-array.prototype.concat
es6id: 22.1.3.1_3 es6id: 22.1.3.1_3
description: Array.prototype.concat sloppy arguments throws description: Array.prototype.concat sloppy arguments throws
features: [Symbol.isConcatSpreadable]
---*/ ---*/
function MyError() {} function MyError() {}
var args = (function(a) { return arguments; })(1,2,3); 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 description: Array.prototype.concat sloppy arguments with dupes
flags: [noStrict] flags: [noStrict]
includes: [compareArray.js] includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/ ---*/
var args = (function(a, a, a) { return arguments; })(1,2,3); var args = (function(a, a, a) { return arguments; })(1,2,3);
args[Symbol.isConcatSpreadable] = true; args[Symbol.isConcatSpreadable] = true;

View File

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

View File

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

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3 es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable boolean wrapper description: Array.prototype.concat Symbol.isConcatSpreadable boolean wrapper
includes: [compareArray.js] includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/ ---*/
var bool = new Boolean(true) var bool = new Boolean(true)
// Boolean wrapper objects are not concat-spreadable by default // 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 es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable function description: Array.prototype.concat Symbol.isConcatSpreadable function
includes: [compareArray.js] includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/ ---*/
var fn = function(a, b, c) {} var fn = function(a, b, c) {}
// Functions are not concat-spreadable by default // Functions are not concat-spreadable by default

View File

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

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3 es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable number wrapper description: Array.prototype.concat Symbol.isConcatSpreadable number wrapper
includes: [compareArray.js] includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/ ---*/
var num = new Number(true) var num = new Number(true)
// Number wrapper objects are not concat-spreadable by default // 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 es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable reg exp description: Array.prototype.concat Symbol.isConcatSpreadable reg exp
includes: [compareArray.js] includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/ ---*/
var re = /abc/; var re = /abc/;
// RegExps are not concat-spreadable by default // RegExps are not concat-spreadable by default

View File

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

View File

@ -8,6 +8,7 @@ esid: sec-array.prototype.concat
es6id: 22.1.3.1_3 es6id: 22.1.3.1_3
description: Array.prototype.concat Symbol.isConcatSpreadable string wrapper description: Array.prototype.concat Symbol.isConcatSpreadable string wrapper
includes: [compareArray.js] includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/ ---*/
var str1 = new String("yuck\uD83D\uDCA9") var str1 = new String("yuck\uD83D\uDCA9")
// String wrapper objects are not concat-spreadable by default // 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 es6id: 22.1.3.1_3
description: Array.prototype.concat strict arguments description: Array.prototype.concat strict arguments
includes: [compareArray.js] includes: [compareArray.js]
features: [Symbol.isConcatSpreadable]
---*/ ---*/
var args = (function(a, b, c) { "use strict"; return arguments; })(1,2,3); var args = (function(a, b, c) { "use strict"; return arguments; })(1,2,3);
args[Symbol.isConcatSpreadable] = true; args[Symbol.isConcatSpreadable] = true;