pub unsafe fn iterate<C: Fn(JSValueRef) -> Result<R, JsError>, R>(
    ctx: *mut JSContext,
    iterator_ref: &JSValueRef,
    consumer_producer: C
) -> Result<Vec<R>, JsError>
Expand description

iterate over an object conforming to the iterator protocol

Safety

please ensure that the QuickjsContext corresponding to the passed JSContext is still valid