Skip to main content

JS_ToPrimitive

Function JS_ToPrimitive 

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

JS_ToPrimitive: ToPrimitive with a hint (0 default, 1 number, 2 string).

ยงSafety

val must be a live JSValue.