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

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

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

The WebAssembly.instantiateStreaming() function compiles and instantiates a WebAssembly module directly from a streamed underlying source. This is the most efficient, optimized way to load wasm code.

MDN

Parameters

response: Response | PromiseLike<Response>
optional
importObject: Imports