()
| 245 | |
| 246 | if (signal) { |
| 247 | const onAbort = () => { |
| 248 | // Remove from queue so it doesn't occupy a slot |
| 249 | const idx = this.#pendingWrites.indexOf(entry); |
| 250 | if (idx !== -1) this.#pendingWrites.removeAt(idx); |
| 251 | reject(signal.reason ?? lazyDOMException('Aborted', 'AbortError')); |
| 252 | }; |
| 253 | |
| 254 | // Wrap resolve/reject to clean up signal listener |
| 255 | entry.resolve = function() { |
nothing calls this directly
no test coverage detected