/// Delete a named property from the object.
///
/// Returns false if the property cannot be deleted.
Delete a named property from the object.
Returns false if the property cannot be deleted.
Delete a named property from the object . Returns false if the property cannot be deleted .
fn delete_property(
        &self,
        activation: &mut Activation<'_, 'gc, '_>,
        multiname: &Multiname<'gc>,
    ) -> Result<bool, Error> {
        match self.vtable().and_then(|vtable| vtable.get_trait(multiname)) {
            None => {
                if self
                    .instance_of_class_definition()
                    .map(|c| c.read().is_sealed())
                    .unwrap_or(false)
                {
                    Ok(false)
                } else {
                    self.delete_property_local(activation, multiname)
                }
            }
            _ => Ok(false),
        }
    }
fn delete_property ( & self , activation : & mut Activation < ' _ , ' gc , ' _ > , multiname : & Multiname < ' gc > , ) -> Result < bool , Error > { match self . vtable ( ) . and_then ( | vtable | vtable . get_trait ( multiname ) ) { None => { if self . instance_of_class_definition ( ) . map ( | c | c . read ( ) . is_sealed ( ) ) . unwrap_or ( false ) { Ok ( false ) } else { self . delete_property_local ( activation , multiname ) } } _ => Ok ( false ) , } }
Delete a named property from the object.
Delete a named property from the object .
&self
activation
&mut Activation<'_, 'gc, '_>
multiname
&Multiname<'gc>