This module addresses some shortcomings of emscripten-compiled modules.
- It returns a true promise which resolves when the module is loaded and the web assembly is compiled. This is needed because, until very recently, emscripted modules implemented then but were not true promises. If you awaited the the promise, your code would enter an infinite loop. This module prevents ensures you get a real promise back.
- This module provides functions that allocate memory within the web assembly module's memory space (where the web assembly code can access it), call a callback you provide with that memory, and clean up that memory when your callback completes.
- This module provides TypeScript typings so that your compiler will alert you if you're passing a pointer into the memory of one web assembly module to a different web assembly module.