pub unsafe fn size( ctx: *mut JSContext, map: &JSValueRef) -> Result<i32, JsError>
get the number of entries in a map
please ensure the passed JSContext is still valid