-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
Description
If you're compiling to WASM with the Emterpreter, the Emterpreter data is not embedded within the WASM and is either left as a standalone file, or embedded as an array in the JS.
The WASM spec allows you to have multiple data sections, and the Emterpreter data is just being set in the main heap, so it should be possible to have it embedded in the WASM, right?
Also, the helpful error for when you forget to load the data file Assertion failed: bad emterpreter file in -O0 turns into the much less clear failed to asynchronously prepare wasm: RuntimeError: remainder by zero in -O3.