Skip to main content

JS_ToIndex

Function JS_ToIndex 

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

JS_ToIndex: a valid array index, or a RangeError.

ยงSafety

plen must be writable and val a live JSValue.