fn is_instance_of(
        &self,
        activation: &mut Activation<'_, 'gc, '_>,
        class: Object<'gc>,
    ) -> Result<bool, Error> {
        let type_proto = class
            .get_property(&QName::dynamic_name("prototype").into(), activation)?
            .coerce_to_object(activation)?;

        self.has_prototype_in_chain(type_proto)
    }
/// Determine if this object is an instance of a given type.
///
/// This uses the ES3 definition of instance, which walks the prototype
/// chain. For the ES4 definition of instance, use `is_of_type`, which uses
/// the class object chain and accounts for interfaces.
///
/// The given object should be the class object for the given type we are
/// checking against this object. Its prototype will be extracted and
/// searched in the prototype chain of this object.
Determine if this object is an instance of a given type.
This uses the ES3 definition of instance, which walks the prototype
chain. For the ES4 definition of instance, use `is_of_type`, which uses
the class object chain and accounts for interfaces.

The given object should be the class object for the given type we are
checking against this object. Its prototype will be extracted and
searched in the prototype chain of this object.
Determine if this object is an instance of a given type . This uses the ES3 definition of instance which walks the prototype chain . For the ES4 definition of instance use ` is_of_type ` which uses the class object chain and accounts for interfaces . The given object should be the class object for the given type we are checking against this object . Its prototype will be extracted and searched in the prototype chain of this object .
fn is_instance_of(
        &self,
        activation: &mut Activation<'_, 'gc, '_>,
        class: Object<'gc>,
    ) -> Result<bool, Error> {
        let type_proto = class
            .get_property(&QName::dynamic_name("prototype").into(), activation)?
            .coerce_to_object(activation)?;
        self.has_prototype_in_chain(type_proto)
    }
fn is_instance_of ( & self , activation : & mut Activation < ' _ , ' gc , ' _ > , class : Object < ' gc > , ) -> Result < bool , Error > { let type_proto = class . get_property ( & QName :: dynamic_name ( " " ) . into ( ) , activation ) ? . coerce_to_object ( activation ) ? ; self . has_prototype_in_chain ( type_proto ) }
Determine if this object is an instance of a given type.
Determine if this object is an instance of a given type .
&self
activation
&mut Activation<'_, 'gc, '_>
class
Object<'gc>
&self
activation
&mut Activation<'_, 'gc, '_>
class
Object<'gc>