§Namespaces

WebAssembly

§Classes

CustomEvent
ErrorEvent
Performance
PerformanceEntry

Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the .mark() method) at an explicit point in an application.

PerformanceMark

PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the performance timeline.

PerformanceMeasure

PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the performance timeline.

PromiseRejectionEvent
WebAssembly.CompileError

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

WebAssembly.Global

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

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 into WebAssembly code from JavaScript.

WebAssembly.LinkError

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

WebAssembly.Memory

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

WebAssembly.Module

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

WebAssembly.RuntimeError

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

WebAssembly.Table

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

Worker

§Variables

console
performance

§Functions

clearInterval

Cancels a timed, repeating action which was previously started by a call to setInterval()

clearTimeout

Cancels a scheduled action initiated by setTimeout()

dispatchEvent

Dispatches an event in the global scope, synchronously invoking any registered event listeners for this event in the appropriate order. Returns false if event is cancelable and at least one of the event handlers which handled this event called Event.preventDefault(). Otherwise it returns true.

queueMicrotask

A microtask is a short function which is executed after the function or module which created it exits and only if the JavaScript execution stack is empty, but before returning control to the event loop being used to drive the script's execution environment. This event loop may be either the main event loop or the event loop driving a web worker.

setInterval

Repeatedly calls a function , with a fixed time delay between each call.

setTimeout

Sets a timer which executes a function once after the timer expires. Returns an id which may be used to cancel the timeout.

WebAssembly.compile

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).

WebAssembly.compileStreaming

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).

WebAssembly.instantiate

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

WebAssembly.instantiateStreaming

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.

WebAssembly.validate

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).

§Interfaces

CustomEventInit
PerformanceMarkOptions
PerformanceMeasureOptions
WebAssembly.GlobalDescriptor

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

WebAssembly.MemoryDescriptor

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

WebAssembly.ModuleExportDescriptor

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

WebAssembly.ModuleImportDescriptor

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

WebAssembly.TableDescriptor

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

WebAssembly.WebAssemblyInstantiatedSource

The value returned from WebAssembly.instantiate.

§Type Aliases

PerformanceEntryList
WebAssembly.Exports
WebAssembly.ExportValue
WebAssembly.ImportExportKind
WebAssembly.Imports
WebAssembly.ImportValue
WebAssembly.ModuleImports
WebAssembly.TableKind
WebAssembly.ValueType