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