pub fn create_object(
    cx: JSContext,
    global: HandleObject<'_>,
    proto: HandleObject<'_>,
    class: &'static JSClass,
    methods: &[Guard<&'static [JSFunctionSpec]>],
    properties: &[Guard<&'static [JSPropertySpec]>],
    constants: &[Guard<&[ConstantSpec]>],
    rval: MutableHandleObject<'_>
)
Expand description

Create a new object with a unique type.