Skip to main content

set_uncaught_hooks

Function set_uncaught_hooks 

Source
pub fn set_uncaught_hooks(
    uncaught: unsafe fn(*mut JSContext, Value),
    flush: unsafe fn(*mut JSContext),
)
Expand description

Register the runtime’s exception router. Idempotent (first registration wins — every bao_runtime context installs the same functions).