sindresorhus/p-timeout

Node 18 upgrade improvements

Opened this issue · 1 comments

I just saw a couple node Node 18-related notes in the code. I'll add a couple more:

For custom errors, the V8-specific Error.captureStackTrace might be nice for a cleaner stack trace. Call it with ?. so it does not fail on non-V8.