Function instantiate
- instantiate(bytes, importObject?): Promise<WebAssemblyInstantiatedSource>
Parameters
- bytes: BufferSource
Optional
importObject: Imports
Returns Promise<WebAssemblyInstantiatedSource>
- instantiate(moduleObject, importObject?): Promise<WebAssembly.Instance>
Parameters
- moduleObject: WebAssembly.Module
Optional
importObject: Imports
Returns Promise<WebAssembly.Instance>
MDN Reference