Function mozjs::jsapi::CurrentGlobalOrNull
source · pub unsafe extern "C" fn CurrentGlobalOrNull(
cx: *mut JSContext,
) -> *mut JSObject
Expand description
Get the current realm’s global. Returns nullptr if no realm has been entered.