| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/WebAssembly/Reference/JavaScript_interface/Tag/Tag | [Back] [Original] |
Get to know MDN better
This feature is well established and works across many devices and browser versions. Its been available across browsers since May 2022.
The WebAssembly.Tag() constructor creates a new WebAssembly.Tag object instance.
new WebAssembly.Tag(type)
typeAn object that can contain the following members:
parametersAn array of strings representing the exception type's parameters and their types. The strings can be any Wasm type.
TypeErrorThrown if at least one of these conditions is true:
type parameter is not an object.type.parameters property is not supplied.type.parameters property contains an unsupported data type.This creates a tag with two values.
const tag = new WebAssembly.Tag({ parameters: ["i32", "i64"] });
| Specification |
|---|
| WebAssembly JavaScript Interface: Exception Handling # dom-tag-tag-type-type |
tag definitionexnref typeThis page was last modified on May 22, 2026 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |