pub fn define_guarded_methods(
cx: JSContext,
obj: HandleObject<'_>,
methods: &[Guard<&'static [JSFunctionSpec]>],
global: HandleObject<'_>,
)
Expand description
Conditionally define methods on an object.
pub fn define_guarded_methods(
cx: JSContext,
obj: HandleObject<'_>,
methods: &[Guard<&'static [JSFunctionSpec]>],
global: HandleObject<'_>,
)
Conditionally define methods on an object.