/// Partially construct `Object.prototype`.
///
/// `__proto__` and other cross-linked properties of this object will *not*
/// be defined here. The caller of this function is responsible for linking
/// them in order to obtain a valid ECMAScript `Object` prototype.
///
/// Since Object and Function are so heavily intertwined, this function does
/// not allocate an object to store either proto. Instead, you must allocate
/// bare objects for both and let this function fill Object for you.


Since Object and Function are so heavily intertwined, this function does
not allocate an object to store either proto. Instead, you must allocate
bare objects for both and let this function fill Object for you.
Since Object and Function are so heavily intertwined this function does not allocate an object to store either proto . Instead you must allocate bare objects for both and let this function fill Object for you .
pub fn fill_proto<'gc>(
    gc_context: MutationContext<'gc, '_>,
    object_proto: Object<'gc>,
    fn_proto: Object<'gc>,
) {
    object_proto.as_script_object().unwrap().force_set_function(
        "addProperty",
        add_property,
        gc_context,
        Attribute::DONT_DELETE | Attribute::DONT_ENUM,
        Some(fn_proto),
    );
    object_proto.as_script_object().unwrap().force_set_function(
        "hasOwnProperty",
        has_own_property,
        gc_context,
        Attribute::DONT_DELETE | Attribute::DONT_ENUM,
        Some(fn_proto),
    );
    object_proto.as_script_object().unwrap().force_set_function(
        "isPropertyEnumerable",
        is_property_enumerable,
        gc_context,
        Attribute::DONT_DELETE | Attribute::DONT_ENUM,
        Some(fn_proto),
    );
    object_proto.as_script_object().unwrap().force_set_function(
        "isPrototypeOf",
        is_prototype_of,
        gc_context,
        Attribute::DONT_DELETE | Attribute::DONT_ENUM,
        Some(fn_proto),
    );
    object_proto.as_script_object().unwrap().force_set_function(
        "toString",
        to_string,
        gc_context,
        Attribute::DONT_DELETE | Attribute::DONT_ENUM,
        Some(fn_proto),
    );
    object_proto.as_script_object().unwrap().force_set_function(
        "valueOf",
        value_of,
        gc_context,
        Attribute::DONT_DELETE | Attribute::DONT_ENUM,
        Some(fn_proto),
    );
    object_proto.as_script_object().unwrap().force_set_function(
        "watch",
        watch,
        gc_context,
        Attribute::DONT_DELETE | Attribute::DONT_ENUM,
        Some(fn_proto),
    );
    object_proto.as_script_object().unwrap().force_set_function(
        "unwatch",
        unwatch,
        gc_context,
        Attribute::DONT_DELETE | Attribute::DONT_ENUM,
        Some(fn_proto),
    );
}
pub fn fill_proto < ' gc > ( gc_context : MutationContext < ' gc , ' _ > , object_proto : Object < ' gc > , fn_proto : Object < ' gc > , ) { object_proto . as_script_object ( ) . unwrap ( ) . force_set_function ( " " , add_property , gc_context , Attribute :: DONT_DELETE | Attribute :: DONT_ENUM , Some ( fn_proto ) , ) ; object_proto . as_script_object ( ) . unwrap ( ) . force_set_function ( " " , has_own_property , gc_context , Attribute :: DONT_DELETE | Attribute :: DONT_ENUM , Some ( fn_proto ) , ) ; object_proto . as_script_object ( ) . unwrap ( ) . force_set_function ( " " , is_property_enumerable , gc_context , Attribute :: DONT_DELETE | Attribute :: DONT_ENUM , Some ( fn_proto ) , ) ; object_proto . as_script_object ( ) . unwrap ( ) . force_set_function ( " " , is_prototype_of , gc_context , Attribute :: DONT_DELETE | Attribute :: DONT_ENUM , Some ( fn_proto ) , ) ; object_proto . as_script_object ( ) . unwrap ( ) . force_set_function ( " " , to_string , gc_context , Attribute :: DONT_DELETE | Attribute :: DONT_ENUM , Some ( fn_proto ) , ) ; object_proto . as_script_object ( ) . unwrap ( ) . force_set_function ( " " , value_of , gc_context , Attribute :: DONT_DELETE | Attribute :: DONT_ENUM , Some ( fn_proto ) , ) ; object_proto . as_script_object ( ) . unwrap ( ) . force_set_function ( " " , watch , gc_context , Attribute :: DONT_DELETE | Attribute :: DONT_ENUM , Some ( fn_proto ) , ) ; object_proto . as_script_object ( ) . unwrap ( ) . force_set_function ( " " , unwatch , gc_context , Attribute :: DONT_DELETE | Attribute :: DONT_ENUM , Some ( fn_proto ) , ) ; }
Partially construct `Object.prototype`.
Partially construct ` Object . prototype ` .
gc_context
MutationContext<'gc, '_>
object_proto
Object<'gc>
fn_proto
Object<'gc>