Function ReportUncatchableException

Source
pub unsafe extern "C" fn ReportUncatchableException(
    cx: *mut JSContext,
)
Expand description

An uncatchable exception is used to terminate execution by returning false or nullptr without reporting a pending exception on the context. These exceptions are called “uncatchable” because try-catch can’t be used to catch them.

This is mainly used to terminate JS execution from the interrupt handler.

If the context has a pending exception, this function will clear it. Also, in debug builds, it sets a flag on the context to improve exception handling assertions in the engine.