The WebAssembly.CompileError() constructor creates a new
WebAssembly CompileError object, which indicates an error during
WebAssembly decoding or validation.
A WebAssembly.Instance object is a stateful, executable instance
of a WebAssembly.Module. Instance objects contain all the exported
WebAssembly functions that allow calling into WebAssembly code from
JavaScript.
The WebAssembly.LinkError() constructor creates a new WebAssembly
LinkError object, which indicates an error during module
instantiation (besides traps from the start function).
A WebAssembly.Module object contains stateless WebAssembly code
that has already been compiled by the browser and can be
efficiently shared with Workers, and instantiated multiple times.
The WebAssembly.RuntimeError() constructor creates a new WebAssembly
RuntimeError object — the type that is thrown whenever WebAssembly
specifies a trap.
The WebAssembly.compile() function compiles a WebAssembly.Module
from WebAssembly binary code. This function is useful if it is
necessary to a compile a module before it can be instantiated
(otherwise, the WebAssembly.instantiate() function should be used).
The WebAssembly.compileStreaming() function compiles a
WebAssembly.Module 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).
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.
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).