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