Skip to main content

JS_FreeRuntime

Function JS_FreeRuntime 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_FreeRuntime(rt: *mut JsRuntime)
Expand description

JS_FreeRuntime: drop the runtime and every context it still owns.

ยงSafety

rt must come from JS_NewRuntime, and every JSContext * derived from it must be considered dead afterwards.