Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since October 2017.
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.
Creates a new Instance object.
Returns an object containing as its members all the functions exported from the WebAssembly module instance, to allow them to be accessed and used by JavaScript. Read-only.
The WebAssembly.Instance() constructor function can be called to synchronously instantiate a given WebAssembly.Module object, for example:
The preferred way to get an Instance is asynchronously, for example using the WebAssembly.instantiateStreaming() function like this:
This also demonstrates how the exports property is used to access exported functions.
| WebAssembly JavaScript Interface # instances |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Apr 22, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.