Skip to main content

create_interface

Function create_interface 

Source
pub(crate) unsafe fn create_interface<D: DomTypes>(
    cx: &mut JSContext,
    init: InterfaceInit,
    global: HandleObject<'_>,
    cache: *mut ProtoOrIfaceArray,
) -> *mut JSObject
Expand description

SAFETY: cache is a non-null pointer to a valid ProtoOrIfaceArray object. The returned object needs to be rooted.