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.instantiateStreaming

A modern runtime for JavaScript and TypeScript.
Go to Latest
function WebAssembly.instantiateStreaming
import { WebAssembly } from "https://deno.land/x/deno@v1.28.1/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