makeAbortError
makeAbortError(
reason?
):Error
&object
Create an abort error that matches the spec for an “AbortError”.
Parameters
Section titled “Parameters”reason?
Section titled “reason?”Optional human-readable reason or Error instance.
string
| Error
Returns
Section titled “Returns”Error
& object
An error with name “AbortError”