Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

A WebAssembly.Module object contains stateless WebAssembly code that has already been compiled by the browser — this can be efficiently shared with Workers, and instantiated multiple times.

MDN

Constructors

new
Module(bytes: BufferSource)

Creates a new Module object.

Static Methods

customSections(moduleObject: Module, sectionName: string): ArrayBuffer[]

Given a Module and string, returns a copy of the contents of all custom sections in the module with the given string name.

Given a Module, returns an array containing descriptions of all the declared exports.

Given a Module, returns an array containing descriptions of all the declared imports.