Skip to main content

JS_GetOpaque2

Function JS_GetOpaque2 

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

JS_GetOpaque2: JS_GetOpaque, raising a TypeError instead of answering null.

ยงSafety

ctx must be a live context and obj a live JSValue.