#[unsafe(no_mangle)]pub unsafe extern "C" fn JS_DupContext(
ctx: *mut JsContext,
) -> *mut JsContextExpand description
JS_DupContext: raise the context’s reference count and answer the same pointer.
The reference does exactly this — a context is not copyable, only reference-counted — and the count is what makes the documented idiom safe: hand a context to a callback, release it when the callback returns, and the host’s own release still finds it alive.
§Safety
ctx must be a live context.