A video of the issue and work-around is available here.
-
Download the
sample-mod
folder from this repository. -
Open the JavaScript console in Chrome and go to
https://moddable-wasm-tools.netlify.com/
. -
Click the Choose Files button in the top left corner, select the
sample-mod
folder from this repository, and click Upload. -
The Wasm Moddable tools run in a worker and throw the following error:
Uncaught (in promise) RangeError: Maximum call stack size exceeded
Note: the issue does not occur in Firefox or Safari
-
Clone this repository, navigate to the directory, and start a web server:
git clone https://github.com/lprader/wasm-tools.git cd wasm-tools python -m SimpleHTTPServer 8000
-
Open the JavaScript console in Chrome and go to
http://localhost:8000
. -
Click the Choose Files button in the top left corner, select the
sample-mod
folder from this repository, and click Upload. -
The Wasm Moddable tools run in a worker and throw the following error:
Uncaught (in promise) RangeError: Maximum call stack size exceeded
Note: the issue does not occur in Firefox or Safari
To build the Wasm Moddable tools (tools.wasm
and tools.js
) yourself, you'll need to install Emscripten and the Moddable SDK. Full instructions are available in this repository.
The version included in this repository was built with Emscripten version 1.38.31
and the Moddable SDK commit 6c524c2f3f9187943346cd869d1b284cbf75b7de
. Note that these are not the most current versions of Emscripten or the Moddable SDK. The problem is reproducible using other versions. Also note that LLVM-based Wasm tools are not yet able to build XS.