Function mozjs::jsapi::JS::IterateRealms
source ยท pub unsafe extern "C" fn IterateRealms(
cx: *mut JSContext,
data: *mut c_void,
realmCallback: Option<unsafe extern "C" fn(_: *mut JSContext, _: *mut c_void, _: *mut Realm, _: *const AutoRequireNoGC)>,
)
Expand description
This function calls |realmCallback| on every realm. Beware that there is no guarantee that the realm will survive after the callback returns. Also, barriers are disabled via the TraceSession.