Skip to main content

JS_ToBool

Function JS_ToBool 

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

JS_ToBool: the truthiness of a value, or -1 for an exception.

ยงSafety

val must be a live JSValue.