(object: unknown)
| 447 | // which sets abortSignalConsumed to true when the signal |
| 448 | // is read. |
| 449 | const addSignalProperty = (object: unknown) => { |
| 450 | Object.defineProperty(object, 'signal', { |
| 451 | enumerable: true, |
| 452 | get: () => { |
| 453 | this.#abortSignalConsumed = true |
| 454 | return abortController.signal |
| 455 | }, |
| 456 | }) |
| 457 | } |
| 458 | |
| 459 | // Create fetch function |
| 460 | const fetchFn = () => { |
nothing calls this directly
no outgoing calls
no test coverage detected