WebAssembly.CompileErrorobject indicates an error during WebAssembly decoding or validation.
WebAssembly.Moduleinstances. This allows dynamic linking of multiple modules.
WebAssembly.Instanceobject is a stateful, executable instance of a
WebAssembly.LinkErrorobject indicates an error during module instantiation (besides traps from the start function).
WebAssembly.Memoryobject is a resizable
SharedArrayBufferthat holds the raw bytes of memory accessed by a WebAssembly Instance.
WebAssembly.Moduleobject contains stateless WebAssembly code that has already been compiled by the browser — this can be efficiently shared with Workers, and instantiated multiple times.
WebAssembly.RuntimeErrorobject is the error type that is thrown whenever WebAssembly specifies a trap.
WebAssembly.compile()function compiles WebAssembly binary code into a
WebAssembly.Moduleobject. 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).
WebAssembly.compileStreaming()function compiles a
WebAssembly.Moduledirectly 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).
The WebAssembly.instantiate() function allows you to compile and instantiate WebAssembly code.
This overload takes the WebAssembly binary code, in the form of a typed array or ArrayBuffer, and performs both compilation and instantiation in one step. The returned Promise resolves to both a compiled WebAssembly.Module and its first WebAssembly.Instance.
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.
WebAssembly.validate()function validates a given typed array of WebAssembly binary code, returning whether the bytes form a valid wasm module (
true) or not (
GlobalDescriptordescribes the options you can pass to
MemoryDescriptordescribes the options you can pass to
ModuleExportDescriptoris the description of a declared export in a
ModuleImportDescriptoris the description of a declared import in a
TableDescriptordescribes the options you can pass to
The value returned from