nx.js
NamespacesWebAssemblyClasses

Global

MDN Reference

Type Parameters

Type ParameterDefault type
T extends ValueTypeValueType

Implements

  • Global

Constructors

new Global()

new Global<T>(descriptor, value?): Global<T>

Parameters

ParameterType
descriptorGlobalDescriptor<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

ParameterType
vValueTypeMap[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

On this page