Function script::dom::bindings::error::report_pending_exception

source ยท
pub unsafe fn report_pending_exception(
    cx: *mut JSContext,
    dispatch_event: bool,
    realm: InRealm<'_>,
    can_gc: CanGc,
)
Expand description

Report a pending exception, thereby clearing it.

The dispatch_event argument is temporary and non-standard; passing false prevents dispatching the error event.