mirror of https://github.com/tc39/test262.git
Add missing Symbol.isConcatSpreadable feature flags
This commit is contained in:
parent
2bee5df77a
commit
72537004b0
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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},
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 = {};
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = {};
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue