WebAssembly / js-promise-integration

JavaScript Promise Integration
Other
68 stars 17 forks source link

How is this going to work with ESM integration? #7

Closed Pyrolistical closed 2 years ago

Pyrolistical commented 2 years ago

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

Pyrolistical commented 2 years ago

Asked the question the other way around https://github.com/WebAssembly/esm-integration/issues/64 as well

fgmccabe commented 2 years ago

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).