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"] });tag definitionexnref type