run.rb
run.rb copied to clipboard
Fix RangeError
The reason this is happening has something to do with the _compile_array
internals and the problem is solved using emscripten 1.38.32+ and adding the flag -Os
or -Oz
(https://emscripten.org/docs/optimizing/Optimizing-Code.html#optimizing-code-size) to the emcc
call when building the WASM.
We also adjusted the memory in this to allow for growth.
cc @damaneice 🍐
Hi @jeffrafter and thank you for the PR! I'm sorry for the delay.
@willglynn this seems better suited for your review when you have time.