Skip to main content

copy_data_properties

Function copy_data_properties 

Source
pub(crate) fn copy_data_properties(
    it: &mut Interp,
    target: &ObjRef,
    src: &Value,
    excluded: &[String],
) -> Result<(), Value>
Expand description

CopyDataProperties(target, source, excluded)(§7.3.25)。オブジェクトの分割代入の ...rest が使う。 自前のキーを [[OwnPropertyKeys]] の順にたどり、除外されておらず列挙できるものだけを [[Get]] して写す。