#[unsafe(no_mangle)]pub unsafe extern "C" fn JS_ToBool( ctx: *mut JsContext, val: JsValue, ) -> c_int
JS_ToBool: the truthiness of a value, or -1 for an exception.
JS_ToBool
-1
val must be a live JSValue.
val
JSValue