/// Install a const trait on the global object.
/// This should only ever be called on the `global` object, during initialization.
Install a const trait on the global object.
This should only ever be called on the `global` object, during initialization.
Install a const trait on the global object . This should only ever be called on the ` global ` object during initialization .
fn install_const_late(
        &mut self,
        mc: MutationContext<'gc, '_>,
        name: QName<'gc>,
        value: Value<'gc>,
    ) {
        let new_slot_id = self
            .vtable()
            .unwrap()
            .install_const_trait_late(mc, name, value);
        self.base_mut(mc)
            .install_const_slot_late(new_slot_id, value);
    }
fn install_const_late ( & mut self , mc : MutationContext < ' gc , ' _ > , name : QName < ' gc > , value : Value < ' gc > , ) { let new_slot_id = self . vtable ( ) . unwrap ( ) . install_const_trait_late ( mc , name , value ) ; self . base_mut ( mc ) . install_const_slot_late ( new_slot_id , value ) ; }
Install a const trait on the global object.
Install a const trait on the global object .
&mut self
mc
MutationContext<'gc, '_>
name
QName<'gc>
value
Value<'gc>