pub unsafe fn JS_ErrorFromException(
    cx: *mut JSContext,
    obj: HandleObject<'_>
) -> *mut JSErrorReport