Function script::dom::bindings::interface::define_guarded_properties

source ยท
pub fn define_guarded_properties(
    cx: JSContext,
    obj: HandleObject<'_>,
    properties: &[Guard<&'static [JSPropertySpec]>],
    global: HandleObject<'_>,
)
Expand description

Conditionally define properties on an object.