Function mozjs::jsapi::JS::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.