WebAssembly.Global.prototype

The WebAssembly.Global.prototype property represents the prototype for the WebAssembly.Global() constructor.

Property attributes of WebAssembly.Global.prototype
Writable no
Enumerable no
Configurable no

Description

All WebAssembly.Global instances inherit from Global.prototype. The prototype object of the WebAssembly.Global() constructor can be modified to affect all WebAssembly.Global instances.

Properties

Global.prototype.constructor
Returns the function that created this object's instance. By default this is the WebAssembly.Global() constructor.
Global.prototype[@@toStringTag]
The initial value of the @@toStringTag property is the String value "WebAssembly.Global".
Global.prototype.value
The value contained inside the global variable — this can be used to directly set and get the global's value.

Methods

Global.prototype.valueOf()
Old-style method that returns the value contained inside the global variable.

Specifications

Specification Status Comment
WebAssembly JavaScript Interface
The definition of 'WebAssembly.Global()' in that specification.
Working Draft Initial draft definition.

Browser compatibility

No compatibility data found. Please contribute data for "javascript.builtins.WebAssembly.Global.prototype" (depth: 1) to the MDN compatibility data repository.

 

See also

 

Document Tags and Contributors

Contributors to this page: chrisdavidmills
Last updated by: chrisdavidmills,