Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.shared_globals.d.ts>WebAssembly.Global

A modern runtime for JavaScript and TypeScript.
Go to Latest
class WebAssembly.Global
import { WebAssembly } from "https://deno.land/x/deno@v1.28.3/cli/tsc/dts/lib.deno.shared_globals.d.ts";
const { Global } = WebAssembly;

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

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.