Function mozjs::jsapi::JS::IterateRealmsWithPrincipals
source ยท pub unsafe extern "C" fn IterateRealmsWithPrincipals(
cx: *mut JSContext,
principals: *mut JSPrincipals,
data: *mut c_void,
realmCallback: Option<unsafe extern "C" fn(_: *mut JSContext, _: *mut c_void, _: *mut Realm, _: *const AutoRequireNoGC)>,
)
Expand description
Like IterateRealms, but only call the callback for realms using |principals|.