Lines Matching refs:Array
6 assertEquals(1, Array.prototype.concat.length);
12 assertEquals(void 0, Array.prototype.concat.prototype);
18 var desc = Object.getOwnPropertyDescriptor(Array.prototype, 'concat');
24 var array = [1, 2, 3];
25 assertEquals(array, [].concat(array));
26 assertEquals(array, array.concat([]));
27 array[Symbol.isConcatSpreadable] = false;
28 assertEquals([[1,2,3]], [].concat(array));
29 assertEquals([[1,2,3]], array.concat([]));
45 "X", "Y", "Z"], Array.prototype.concat.call(obj, obj2, arr));
62 "X", "Y", "Z"], Array.prototype.concat.call(obj, obj2, arr));
95 Array.prototype.concat.call(obj, obj2, arr);
177 Array.prototype.concat.call(obj, 1, 2, 3);
196 Array.prototype.concat.call(obj, 1, 2, 3);
205 class A extends Array {}
213 // Array, they should:
215 // - return an instance of the class, rather than an Array instance (if from
223 class A extends Array {
237 constructor() { Array.apply(this, arguments); }
241 var result = Array.prototype.concat.call(obj, 4, 5, 6);
242 assertEquals(Array, result.constructor);
250 var items = new Array(elems);
267 var expected = new Array(4000);
492 assertEquals(new Array(4000), [].concat(obj));
504 var a = new Array(pos);
550 // Non-numeric properties on the prototype or the array shouldn't get
576 var a = new Array(pos);
596 Array.prototype["123"] = 'baz';
608 Array.prototype["123"] = undefined;
614 Array.prototype[123] = 'baz';
620 // Non-numeric properties on the prototype or the array shouldn't get
622 Array.prototype.moe = 'joe';
633 Array.prototype.moe = undefined;
655 assertEquals(9, holey.length); // hole in embedded array is ignored
665 delete Array.prototype[123];
673 // Make first array change length of second array.
681 // Make first array change length of second array massively.
708 delete Array.prototype[123];
709 delete Array.prototype["123"];
710 delete Array.prototype["moe"];
720 // between [].concat(foo) and Array.prototype.concat.apply(foo).
746 assertEquals([obj], Array.prototype.concat.apply(obj));
765 assertEquals([], Array.prototype.concat.apply(obj));
786 assertEquals(["a", "b", undefined], Array.prototype.concat.apply(obj));
811 assertEquals([obj], Array.prototype.concat.apply(obj));
836 assertEquals(["a", "b"], Array.prototype.concat.apply(obj));
859 assertEquals([undefined, undefined, "baz"], Array.prototype.concat.apply(obj))
873 assertThrows(() => Array.prototype.concat.apply(obj), TypeError);