pub fn instantiate_module(module: &Module, imports: &Object) -> Promise
The WebAssembly.instantiate() function allows you to compile and instantiate WebAssembly code.
WebAssembly.instantiate()
MDN documentation