Skip to main content
WASM - Web documentation

Classes

c
WebAssembly.CompileError

The WebAssembly.CompileError object indicates an error during WebAssembly decoding or validation.

c
WebAssembly.Global

A WebAssembly.Global object represents a global variable instance, accessible fromboth JavaScript and importable/exportable across one or more WebAssembly.Moduleinstances. This allows dynamic linking of multiple modules.

c
WebAssembly.Instance

A WebAssembly.Instance object is a stateful, executable instance of a WebAssembly.Module.Instance objects contain all the Exported WebAssembly functions that allow calling intoWebAssembly code from JavaScript.

c
WebAssembly.LinkError

The WebAssembly.LinkError object indicates an error during module instantiation(besides traps from the start function).

c
WebAssembly.Memory

The WebAssembly.Memory object is a resizable ArrayBuffer or SharedArrayBuffer thatholds the raw bytes of memory accessed by a WebAssembly Instance.

c
WebAssembly.Module

A WebAssembly.Module object contains stateless WebAssembly code that has already been compiledby the browser — this can be efficiently shared with Workers, and instantiated multiple times.

c
WebAssembly.RuntimeError

The WebAssembly.RuntimeError object is the error type that is thrown whenever WebAssemblyspecifies a trap.

c
WebAssembly.Table

The WebAssembly.Table() object is a JavaScript wrapper object — an array-like structurerepresenting a WebAssembly Table, which stores function references. A table created byJavaScript or in WebAssembly code will be accessible and mutable from both JavaScriptand WebAssembly.

Functions

f
WebAssembly.compile

The WebAssembly.compile() function compiles WebAssembly binary code into aWebAssembly.Module object. This function is useful if it is necessary to compilea module before it can be instantiated (otherwise, the WebAssembly.instantiate()function should be used).

f
WebAssembly.compileStreaming

The WebAssembly.compileStreaming() function compiles a WebAssembly.Moduledirectly from a streamed underlying source. This function is useful if it isnecessary to a compile a module before it can be instantiated (otherwise, theWebAssembly.instantiateStreaming() function should be used).

f
WebAssembly.instantiate

The WebAssembly.instantiate() function allows you to compile and instantiateWebAssembly code.

f
WebAssembly.instantiateStreaming

The WebAssembly.instantiateStreaming() function compiles and instantiates aWebAssembly module directly from a streamed underlying source. This is the mostefficient, optimized way to load wasm code.

f
WebAssembly.validate

The WebAssembly.validate() function validates a given typed array ofWebAssembly binary code, returning whether the bytes form a valid wasmmodule (true) or not (false).

Interfaces

I
WebAssembly.GlobalDescriptor

The GlobalDescriptor describes the options you can pass tonew WebAssembly.Global().

I
WebAssembly.MemoryDescriptor

The MemoryDescriptor describes the options you can pass tonew WebAssembly.Memory().

I
WebAssembly.ModuleExportDescriptor

A ModuleExportDescriptor is the description of a declared export in aWebAssembly.Module.

I
WebAssembly.ModuleImportDescriptor

A ModuleImportDescriptor is the description of a declared import in aWebAssembly.Module.

I
WebAssembly.TableDescriptor

The TableDescriptor describes the options you can pass tonew WebAssembly.Table().

I
WebAssembly.WebAssemblyInstantiatedSource

The value returned from WebAssembly.instantiate.

Namespaces

N
WebAssembly
No documentation available

Type Aliases

T
WebAssembly.Exports
No documentation available
T
WebAssembly.ExportValue
No documentation available
T
WebAssembly.ImportExportKind
No documentation available
T
WebAssembly.Imports
No documentation available
T
WebAssembly.ImportValue
No documentation available
T
WebAssembly.ModuleImports
No documentation available
T
WebAssembly.TableKind
No documentation available
T
WebAssembly.ValueType
No documentation available