Skip to main content

array_species_create

Function array_species_create 

Source
pub(crate) fn array_species_create(
    it: &mut Interp,
    original: &Value,
    length: usize,
) -> Result<Value, Value>
Expand description

ArraySpeciesCreate(originalArray, length) (ECMAScript 9.4.2.3)。

map/filter/slice/splice/concat/flatMap 等の派生配列生成で、 this.constructor[Symbol.species] を参照して結果オブジェクトを槃築する。