Function script::dom::bindings::interface::define_on_global_object

source ยท
pub fn define_on_global_object(
    cx: JSContext,
    global: HandleObject<'_>,
    name: &CStr,
    obj: HandleObject<'_>,
)
Expand description

Define a property with a given name on the global object. Should be called through the resolve hook.