Closed Pyrolistical closed 2 years ago
Asked the question the other way around https://github.com/WebAssembly/esm-integration/issues/64 as well
It is probably better to have this questions answered on the esm-integration repo. However, JS-Promise integration will very likely not change the API for instantiating modules (the most basic reason being that instantiation of modules is not the only gateway to passing functions into a wasm module).
Is the answer, it just simply won't, and anybody who wishes to use promises must manually call WebAssembly.instantiate?
https://github.com/WebAssembly/esm-integration