Skip to main content

define_properties_from

Function define_properties_from 

Source
pub(crate) fn define_properties_from(
    it: &mut Interp,
    obj: &Value,
    props: &Value,
) -> Result<(), Value>
Expand description

ObjectDefineProperties (§20.1.2.3.1): props を ToObject し、自前の列挙可能キーごとに [[Get]] して ToPropertyDescriptor を全部済ませてから(途中で失敗したら何も定義しない)、順に DefinePropertyOrThrow する。