The error.response on https://github.com/sindresorhus/ky/blob/master/index.js#L374
is undefined when the error is AbortError.

Should I catch that exception in the retry function?
I'm sorry. I could not reproduce this error on Google Chrome / Safari thus might be my Firefox is broken.
This looks like a legit bug in Ky, unfortunately. The error may not have a response on it, which we don't check before attempting to clone it.
In hindsight, I'm kind of regretting https://github.com/sindresorhus/ky/pull/201. People should almost certainly just use error.response. This shortcut provides very little value. Most people are going to destructure the options anyway. I also think that, from the hook's perspective, it's more obvious that options.error.response may be undefined, as opposed to options.response.
Most helpful comment
This looks like a legit bug in Ky, unfortunately. The error may not have a response on it, which we don't check before attempting to clone it.
In hindsight, I'm kind of regretting https://github.com/sindresorhus/ky/pull/201. People should almost certainly just use
error.response. This shortcut provides very little value. Most people are going to destructure the options anyway. I also think that, from the hook's perspective, it's more obvious thatoptions.error.responsemay be undefined, as opposed tooptions.response.