Function mozjs_sys::jsapi::JS_IterateCompartmentsInZone

source ยท
pub unsafe extern "C" fn JS_IterateCompartmentsInZone(
    cx: *mut JSContext,
    zone: *mut Zone,
    data: *mut c_void,
    compartmentCallback: JSIterateCompartmentCallback,
)
Expand description

This function calls |compartmentCallback| on every compartment in the given zone until either all compartments have been iterated or CompartmentIterResult::Stop is returned. Beware that there is no guarantee that the compartment will survive after the callback returns. Also, barriers are disabled via the TraceSession.