import { WebAssembly } from "https://deno.land/x/deno@v1.28.0/cli/dts/lib.deno.shared_globals.d.ts";
const { validate } = WebAssembly;
The WebAssembly.validate()
function validates a given typed array of
WebAssembly binary code, returning whether the bytes form a valid wasm
module (true
) or not (false
).
Parameters
bytes: BufferSource