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