Global
Type Parameters
Implements
- Global
Constructors
new Global()
new Global<T>(descriptor, value?): Global<T>
Parameters
| Parameter | Type | 
|---|---|
| descriptor | GlobalDescriptor<T> | 
| value? | ValueTypeMap[T] | 
Returns
Global<T>
Accessors
value
get value(): ValueTypeMap[T]
The value contained inside the global variable — this can be used to directly set and get the global's value.
set value(v): void
Parameters
| Parameter | Type | 
|---|---|
| v | ValueTypeMap[T] | 
Returns
ValueTypeMap[T]
Implementation of
WebAssembly.Global.value
Methods
valueOf()
valueOf(): ValueTypeMap[T]
Old-style method that returns the value contained inside the global variable.
Returns
ValueTypeMap[T]
Implementation of
WebAssembly.Global.valueOf