| 2700 | } |
| 2701 | |
| 2702 | class XHRReader extends Reader { |
| 2703 | |
| 2704 | constructor(url, options) { |
| 2705 | super(); |
| 2706 | createHttpReader(this, url, options); |
| 2707 | } |
| 2708 | |
| 2709 | async init() { |
| 2710 | await initHttpReader(this, sendXMLHttpRequest, getXMLHttpRequestData); |
| 2711 | super.init(); |
| 2712 | } |
| 2713 | |
| 2714 | readUint8Array(index, length) { |
| 2715 | return readUint8ArrayHttpReader(this, index, length, sendXMLHttpRequest, getXMLHttpRequestData); |
| 2716 | } |
| 2717 | } |
| 2718 | |
| 2719 | function createHttpReader(httpReader, url, options) { |
| 2720 | const { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…