Closed
Description
Bit of a half baked idea, but should we make it easier to throw abort errors from signals? Something like:
AbortSignal.prototype.assertNotAborted = function(message = 'Aborted') {
if (this.aborted) throw new DOMException(message, 'AbortError');
};
I know it's a one-liner, but it might encourage using the right kind of error?