deno.land / x / wasm@wasmer-sdk-v0.6.0 / WasmerSDKBundled.ts

WasmerSDKBundled.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export * from "./WasmerSDK";import { init as load, InitInput, InitOutput } from "./WasmerSDK";// @ts-ignoreimport wasm_bytes from "./pkg/wasmer_js_bg.wasm";
/** * Initialize the underlying WebAssembly module, defaulting to an embedded * copy of the `*.wasm` file. */export const init = async (module_or_path?: InitInput | Promise<InitInput>, maybe_memory?: WebAssembly.Memory): Promise<InitOutput> => { if (!module_or_path) { // @ts-ignore module_or_path = await wasm_bytes(); } return load(module_or_path, maybe_memory);}
wasm

Version Info

Tagged at
4 months ago