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

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

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

The WebAssembly.compileStreaming() function compiles a WebAssembly.Module directly from a streamed underlying source. This function is useful if it is necessary to a compile a module before it can be instantiated (otherwise, the WebAssembly.instantiateStreaming() function should be used).

MDN

Parameters

source: Response | Promise<Response>

Returns

Promise<Module>