()
| 406 | // Abort handler: reject any in-flight threadpool operation so the |
| 407 | // generator doesn't block waiting for compression to finish. |
| 408 | const onAbort = () => { |
| 409 | const reject = rejectWrite; |
| 410 | resolveWrite = undefined; |
| 411 | rejectWrite = undefined; |
| 412 | if (reject) { |
| 413 | reject(signal.reason ?? |
| 414 | lazyDOMException('The operation was aborted', 'AbortError')); |
| 415 | } |
| 416 | }; |
| 417 | signal.addEventListener('abort', onAbort, { __proto__: null, once: true }); |
| 418 | |
| 419 | // Dispatch input to the threadpool and return a promise. |
nothing calls this directly
no test coverage detected
searching dependent graphs…