Nope, I hadn't tried this, and this is precisely what I needed for making it compile and export successfully, thank you!
However, now I'm facing a puzzling ⟪Uncaught (in promise) RuntimeError: index out of bounds⟫ occurring whenever the ⟪reverse⟫ function attempts to modify the buffer provided as its first argument (even if editing only the first element, which should be in range). The WASM generated from the C version doesn't have this problem and works seamlessly…
