()
| 15472 | fr[kState] = "loading"; |
| 15473 | fr[kResult] = null; |
| 15474 | fr[kError] = null; |
| 15475 | const stream = blob.stream(); |
| 15476 | const reader = stream.getReader(); |
| 15477 | const bytes = []; |
| 15478 | let chunkPromise = reader.read(); |
| 15479 | let isFirstChunk = true; |
| 15480 | (() => __async(this, null, function* () { |
| 15481 | while (!fr[kAborted]) { |
| 15482 | try { |
| 15483 | const { done, value } = yield chunkPromise; |
| 15484 | if (isFirstChunk && !fr[kAborted]) { |
| 15485 | queueMicrotask(() => { |
| 15486 | fireAProgressEvent("loadstart", fr); |
| 15487 | }); |
| 15488 | } |
| 15489 | isFirstChunk = false; |
| 15490 | if (!done && types.isUint8Array(value)) { |
nothing calls this directly
no outgoing calls
no test coverage detected