Lines Matching refs:copyWithin
6 assertEquals(Array.prototype.copyWithin.length, 2);
12 assertArrayEquals([4, 5, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(0, 3));
13 assertArrayEquals([1, 4, 5, 4, 5], [1, 2, 3, 4, 5].copyWithin(1, 3));
14 assertArrayEquals([1, 3, 4, 5, 5], [1, 2, 3, 4, 5].copyWithin(1, 2));
15 assertArrayEquals([1, 2, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(2, 2));
21 assertArrayEquals([1, 2, 3, 4, 5].copyWithin(0, 3, 4), [4, 2, 3, 4, 5]);
22 assertArrayEquals([1, 2, 3, 4, 5].copyWithin(1, 3, 4), [1, 4, 3, 4, 5]);
23 assertArrayEquals([1, 2, 3, 4, 5].copyWithin(1, 2, 4), [1, 3, 4, 4, 5]);
29 assertArrayEquals([4, 5, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(0, -2));
30 assertArrayEquals([4, 2, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(0, -2, -1));
31 assertArrayEquals([1, 3, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(-4, -3, -2));
32 assertArrayEquals([1, 3, 4, 4, 5], [1, 2, 3, 4, 5].copyWithin(-4, -3, -1));
33 assertArrayEquals([1, 3, 4, 5, 5], [1, 2, 3, 4, 5].copyWithin(-4, -3));
35 assertArrayEquals([1, 2, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(-5, 0));
42 Array.prototype.copyWithin.call(args, -2, 0); method in Array
53 return Array.prototype.copyWithin.call(null, 0, 3); method in Array
60 return Array.prototype.copyWithin.call(undefined, 0, 3); method in Array
77 assertEquals(34, Array.prototype.copyWithin.call(34, 0, 3).valueOf());
84 assertEquals(sym, Array.prototype.copyWithin.call(sym, 0, 3).valueOf());
96 Array.prototype.copyWithin.call(int32View, 0, 1));
103 [].copyWithin.call(arguments, 1, 3);
112 assertArrayEquals([1, 2, 3, 1, 2], [1, 2, 3, 4, 5].copyWithin(3, 0));
115 assertArrayEquals([1, 2, 3, 1, 2], [1, 2, 3, 4, 5].copyWithin(3, 0, 4));
125 assertArrayEquals([, 4, , , 4, , ], arr.copyWithin(0, 3));
135 }, Array.prototype.copyWithin.call({
146 assertArrayEquals([4, 5, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(0.2, 3.9));
152 assertArrayEquals([4, 5, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(-0, 3));
158 assertArrayEquals([1, 2, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(0, 7));
161 assertArrayEquals([1, 2, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(-7, 0));
167 assertArrayEquals([], [].copyWithin(0, 3));
173 assertArrayEquals([1, 2, 2, 3, 4], [1, 2, 3, 4, 5].copyWithin(2, 1, 4));
180 arr.copyWithin(2, 1, 4);
181 assertArrayEquals([1, 2, 2, 2, 3], arr.copyWithin(2, 1, 4));
188 return Object.freeze([1, , 3, , 4, 5]).copyWithin(2, 1, 4);
193 return Object.seal([1, , 3, , 4, 5]).copyWithin(2, 1, 4);
198 return Object.preventExtensions([1, , 3, , 4, 5]).copyWithin(2, 1, 4);
206 return Object.freeze([1, 2, 3, 4, 5]).copyWithin(0, 3);
211 return Object.seal([, 2, 3, 4, 5]).copyWithin(0, 3);
216 return Object.preventExtensions([ , 2, 3, 4, 5]).copyWithin(0, 3);
231 return arr.copyWithin(1, 3);
241 [4, 5, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(0, 3, undefined));
254 Array.prototype.copyWithin.call(arr, 1, 3); method in Array
257 Array.prototype.copyWithin.call(arr, 1, 3, 4); method in Array
267 assertArrayEquals(arr, arr.copyWithin(45, 9000));
278 assertArrayEquals(expected, arr.copyWithin(45, 9000));
284 arr.copyWithin(45, 9000);
306 Array.prototype.copyWithin.call(object, 1, large - 10); method in Array
323 assertArrayEquals([1, 2, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(0, 3, null));
330 assertArrayEquals([4, 5, 3, 4, 5], [1, 2, 3, 4, 5].copyWithin(0, 3));
334 assertArrayEquals(["FAKE", 5, 3, "FAKE", 5], [1, 2, 3, , 5].copyWithin(0, 3));