Function script::dom::bindings::interface::define_guarded_constants

source ยท
pub fn define_guarded_constants(
    cx: JSContext,
    obj: HandleObject<'_>,
    constants: &[Guard<&[ConstantSpec]>],
    global: HandleObject<'_>,
)
Expand description

Conditionally define constants on an object.