pub unsafe fn CollectJSONAttributes<D>(
    cx: *mut JSContext,
    obj: Handle<*mut JSObject>,
    this: *mut c_void,
    result: Handle<'_, *mut JSObject>,
) -> bool
where D: DomTypes,