Skip to main content

JS_Throw

Function JS_Throw 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn JS_Throw( ctx: *mut JsContext, obj: JsValue, ) -> JsValue
Expand description

JS_Throw: replace the pending exception with obj, answering JS_EXCEPTION.

ยงSafety

ctx must be a live context and obj a live JSValue whose reference this call consumes.