pub fn define_guarded_constants(
cx: JSContext,
obj: HandleObject<'_>,
constants: &[Guard<&[ConstantSpec]>],
global: HandleObject<'_>,
)
Expand description
Conditionally define constants on an object.
pub fn define_guarded_constants(
cx: JSContext,
obj: HandleObject<'_>,
constants: &[Guard<&[ConstantSpec]>],
global: HandleObject<'_>,
)
Conditionally define constants on an object.