deno / 1.23.2 / ~ / webassembly.global.html /

WebAssembly.Global

A WebAssembly.Global object represents a global variable instance, accessible from both JavaScript and importable/exportable across one or more WebAssembly.Module instances. This allows dynamic linking of multiple modules.

MDN

class Global {
constructor( descriptor: GlobalDescriptor , v?: any);
value : any;
valueOf() : any;
}

Constructors

new Global( descriptor: GlobalDescriptor , v?: any)

Creates a new Global object.

Properties

value : any

The value contained inside the global variable — this can be used to directly set and get the global's value.

Methods

valueOf() : any

Old-style method that returns the value contained inside the global variable.