Start WASM init if not already started. Safe to call multiple times.
()
| 568 | |
| 569 | /** Start WASM init if not already started. Safe to call multiple times. */ |
| 570 | ensureReady(): Promise<void> { |
| 571 | if (!this.ready) { |
| 572 | this.ready = this.initModule(); |
| 573 | } |
| 574 | return this.ready; |
| 575 | } |
| 576 | |
| 577 | private async initModule(): Promise<void> { |
| 578 | const t0 = performance.now(); |
no test coverage detected