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