Commit 8043529
fix: reset init promise on failure to allow retry
If wasmInit() fails (e.g. WASM load error), clear the cached promise
so subsequent calls can retry instead of permanently returning the
rejected promise.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f4ae4ad commit 8043529
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
0 commit comments