-
-
Notifications
You must be signed in to change notification settings - Fork 674
Closed
Labels
Description
At the moment the loader helpers put themselves onto the returned module, with a lot of potential for naming clashes. It seems like it would be sensible to namespace them somehow rather them attaching them onto the returned module?
To understand what I'm talking about:
instantiateStreaming(fetch("build/optimized.wasm"))
.then(wasmModule => { // Type: ASUtil
// wasmModule.getString - Loader helper
// wasmModule.add - Our exported function