(controller)
| 467 | controller.enqueue(new TextEncoder().encode('ply\nformat binary_little_endian 1.0\n'.padEnd(8192, ' '))); |
| 468 | }, |
| 469 | pull(controller) { |
| 470 | pulls += 1; |
| 471 | if (pulls > 100) { |
| 472 | controller.close(); // safety: a broken bound would otherwise loop forever |
| 473 | return; |
| 474 | } |
| 475 | controller.enqueue(new Uint8Array(8192)); |
| 476 | }, |
| 477 | cancel, |
| 478 | }); |
| 479 | const fetchImpl = vi.fn(async (url: string) => |