Function script::dom::bindings::interface::define_guarded_methods

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

Conditionally define methods on an object.