Function js::jsapi::JS_GetGlobalForCompartmentOrNull [] [src]

pub unsafe extern "C" fn JS_GetGlobalForCompartmentOrNull(
    cx: *mut JSContext,
    c: *mut JSCompartment
) -> *mut JSObject

May return nullptr, if |c| never had a global (e.g. the atoms compartment), or if |c|'s global has been collected.