Open tal-rofe98 opened 3 months ago
v20.13.0
14.4.2
I have this simple script:
import got from "got"; await got("https://google.com", { signal: AbortSignal.timeout(1) }).catch((error) => console.log(error.name));
Obviously it times out immediately.
The log is AbortError
AbortError
...
Should be TimeoutError. When I do:
TimeoutError
await fetch("https://google.com", { signal: AbortSignal.timeout(1) }).catch((error) => console.log(error.name), );
It prints TimeoutError ...
Describe the bug
v20.13.0
14.4.2
I have this simple script:
Obviously it times out immediately.
Actual behavior
The log is
AbortError
...
Expected behavior
Should be
TimeoutError
. When I do:It prints
TimeoutError
...