jasoncharnes / run.rb

Run Ruby in the browser using WebAssembly
https://runrb.io
MIT License
597 stars 31 forks source link

Fix RangeError #11

Open jeffrafter opened 5 years ago

jeffrafter commented 5 years ago

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 🍐

jasoncharnes commented 5 years ago

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.