fn call_property_local(
        self,
        multiname: &Multiname<'gc>,
        arguments: &[Value<'gc>],
        activation: &mut Activation<'_, 'gc, '_>,
    ) -> Result<Value<'gc>, Error> {
        // Note: normally this would just call into ScriptObjectData::call_property_local
        // but because calling into ScriptObjectData borrows it for entire duration,
        // we run a risk of a double borrow if the inner call borrows again.
        let result = self
            .base()
            .get_property_local(multiname, activation)?
            .coerce_to_object(activation)?;
        result.call(Some(self.into()), arguments, activation)
    }
/// Call a local property of the object. The Multiname should always be public.
///
/// This skips class field lookups and looks at:
/// - object-specific storage (like arrays)
/// - Object dynamic properties
/// - prototype chain
Call a local property of the object. The Multiname should always be public.
This skips class field lookups and looks at:
object-specific storage (like arrays)
Object dynamic properties
prototype chain
Call a local property of the object . The Multiname should always be public . This skips class field lookups and looks at : object - specific storage ( like arrays ) Object dynamic properties prototype chain
fn call_property_local(
        self,
        multiname: &Multiname<'gc>,
        arguments: &[Value<'gc>],
        activation: &mut Activation<'_, 'gc, '_>,
    ) -> Result<Value<'gc>, Error> {
        // Note: normally this would just call into ScriptObjectData::call_property_local
        // but because calling into ScriptObjectData borrows it for entire duration,
        // we run a risk of a double borrow if the inner call borrows again.
        let result = self
            .base()
            .get_property_local(multiname, activation)?
            .coerce_to_object(activation)?;
        result.call(Some(self.into()), arguments, activation)
    }
fn call_property_local ( self , multiname : & Multiname < ' gc > , arguments : & [ Value < ' gc > ] , activation : & mut Activation < ' _ , ' gc , ' _ > , ) -> Result < Value < ' gc > , Error > { // Note: normally this would just call into ScriptObjectData::call_property_local // but because calling into ScriptObjectData borrows it for entire duration, // we run a risk of a double borrow if the inner call borrows again. let result = self . base ( ) . get_property_local ( multiname , activation ) ? . coerce_to_object ( activation ) ? ; result . call ( Some ( self . into ( ) ) , arguments , activation ) }
Call a local property of the object.
Call a local property of the object .
self
multiname
&Multiname<'gc>
arguments
&[Value<'gc>]
activation
&mut Activation<'_, 'gc, '_>
self
multiname
&Multiname<'gc>
arguments
&[Value<'gc>]
activation
&mut Activation<'_, 'gc, '_>