Commit 2718683
authored
fix: detached array buffer on memory growth (#17859)
Caused issues with boxes:
<img width="479" height="182" alt="image"
src="https://github.com/user-attachments/assets/74f687c4-7cad-4b53-8108-91216adee2e2"
/>
References for the fix:
-
https://awesome.red-badger.com/chriswhealy/memory-grow-and-arraybuffers
-
https://stackoverflow.com/questions/51659292/javascript-arraybuffer-detaches-when-constructing-a-new-rust-vec-via-wasmFile tree
1 file changed
+7
-3
lines changed- barretenberg/ts/src/barretenberg_wasm/barretenberg_wasm_main
1 file changed
+7
-3
lines changedLines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | | - | |
178 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| |||
0 commit comments