Skip to main content

pm_define_own_property

Function pm_define_own_property 

Source
pub(crate) fn pm_define_own_property(
    it: &mut Interp,
    o: &ObjRef,
    key: &str,
    desc: &Value,
) -> Result<bool, Value>
Expand description

[[DefineOwnProperty]]。desc は to_property_descriptor の結果(存在するフィールドだけ)。