$ModuleWebAssembly$Typings extension
Methods
-
compile(Object bytes)
→ Future<Module>
-
The
WebAssembly.compile()
function compiles WebAssembly binary code into a
WebAssembly.Module
object. This function is useful if it is necessary to compile
a module before it can be instantiated (otherwise, the WebAssembly.instantiate()
function should be used).
-
compileStreaming(Object source)
→ Future<Module>
-
The
WebAssembly.compileStreaming()
function compiles a WebAssembly.Module
directly from a streamed underlying source. This function is useful if it is
necessary to a compile a module before it can be instantiated (otherwise, the
WebAssembly.instantiateStreaming()
function should be used).
-
instantiateStreaming(Object response, [dynamic importObject])
→ Future<WebAssemblyInstantiatedSource>
-
The
WebAssembly.instantiateStreaming()
function compiles and instantiates a
WebAssembly module directly from a streamed underlying source. This is the most
efficient, optimized way to load wasm code.
-
validate(Object bytes)
→ bool
-
The
WebAssembly.validate()
function validates a given typed array of
WebAssembly binary code, returning whether the bytes form a valid wasm
module (true
) or not (false
).