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.
pub fn define_on_global_object(
cx: JSContext,
global: HandleObject<'_>,
name: &CStr,
obj: HandleObject<'_>,
)
Define a property with a given name on the global object. Should be called through the resolve hook.