pub(crate) fn create_namespace_object<D: DomTypes>(
    cx: JSContext,
    global: HandleObject<'_>,
    proto: HandleObject<'_>,
    class: &'static NamespaceObjectClass,
    methods: &[Guard<&'static [JSFunctionSpec]>],
    constants: &[Guard<&'static [ConstantSpec]>],
    name: &CStr,
    rval: MutableHandleObject<'_>,
)Expand description
Create a new namespace object.