script::dom::bindings::interface

Function 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.