Lines Matching full:array
16 class CustomArray extends Array {}
18 // define Symbol.species, then the ArraySpeciesCreate for Array will use CustomArray
19 Object.defineProperty(Array, Symbol.species, {value: CustomArray})
22 // test unstable array, fastpath in ir will be fixed later.
23 let custom = new Array(2000);
27 // Array.prototype.concat
31 // Array.prototype.map
35 // Array.prototype.filter
39 // Array.prototype.slice
43 // Array.prototype.flatMap
47 // Array.prototype.flat
51 // Array.prototype.splice
55 // Array.prototype.toReversed
57 print("toReversed:", result instanceof Array); // true
59 // Array.prototype.toSorted
61 print("toSorted:", result instanceof Array); // true
63 // Array.prototype.toSpliced
65 print("toSpliced:", result instanceof Array); // true
67 // Array.prototype.toSpliced
69 print("with:", result instanceof Array); // true