Skip to main content

instantiate_buffer_with_options

Function instantiate_buffer_with_options 

Source
pub fn instantiate_buffer_with_options(
    buffer: &[u8],
    imports: &Object,
    options: &CompileOptions,
) -> Promise<InstantiatedSource>
Expand description

The WebAssembly.instantiate() function compiles and instantiates the given bytes under the given compile options, resolving to an InstantiatedSource holding both the module and the instance.

MDN documentation