Skip to main content

to_property_descriptor

Function to_property_descriptor 

Source
pub(crate) fn to_property_descriptor(
    it: &mut Interp,
    v: &Value,
) -> Result<Value, Value>
Expand description

ToPropertyDescriptor (§6.2.6.5): 記述子オブジェクトを検査し、存在するフィールドだけを持つ素のオブジェクトにする。 継承したフィールドと getter も [[HasProperty]]/[[Get]] で読む。get/set が呼べない・data と accessor の混在は TypeError。