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