#[unsafe(no_mangle)]pub unsafe extern "C" fn JS_SetHostPromiseRejectionTracker(
_rt: *mut JsRuntime,
_cb: *const c_void,
_opaque: *mut c_void,
)Expand description
JS_SetHostPromiseRejectionTracker: be told about rejected promises.
The engine reports unhandled rejections through Context::take_unhandled_rejections, which
a CLI drains after a top-level evaluation. A C host has no such call, so the callback is
accepted and never invoked — a documented gap rather than a silent one, because a host that
relies on the tracker would otherwise believe it was being told the truth.
§Safety
The arguments are ignored.