pub unsafe extern "C" fn JS_IterateCompartments(
    cx: *mut JSContext,
    data: *mut c_void,
    compartmentCallback: JSIterateCompartmentCallback
)
Expand description

This function calls |compartmentCallback| on every compartment 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.