script::dom::bindings::error

Function throw_dom_exception

Source
pub(crate) fn throw_dom_exception(
    cx: JSContext,
    global: &GlobalScope,
    result: Error,
    can_gc: CanGc,
)
Expand description

Set a pending exception for the given result on cx.