The WebAssembly.Tag()
constructor creates a new WebAssembly.Tag
object.
The WebAssembly.Tag()
constructor creates a new WebAssembly.Tag
object.
new WebAssembly.Tag(type)
type
An object that can contain the following members:
parameters
An array of data types ("i32"
, "i64"
, "f32"
, "f64"
, "v128"
, "externref"
, "anyfunc"
).
TypeError
: type
parameter is not an object.type.parameters
property is not supplied.type.parameters
contains an unsupported data type.TypeError
will be thrown if type
is not an object, the type.parameters
property is not supplied, or type.parameters
contains an unsupported data type.This creates a tag with two values.
const tag = new WebAssembly.Tag({ parameters: ["i32", "i64"] });
Desktop | Mobile | Server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | Deno | Node.js | |
Tag |
95 |
95 |
100 |
No |
81 |
15.2 |
95 |
95 |
100 |
67 |
15.2 |
17.0 |
No |
17.0.0 |
© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Tag/Tag