mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -05:00
8be2bbf074
Support for Wasm modules. Note this implements the standard where the default export is the instance (not the module). The module will come later with source phase imports. ```ts import { add } from "./math.wasm"; console.log(add(1, 2)); ```
4 lines
120 B
TypeScript
4 lines
120 B
TypeScript
import WasmModule = require("./math.wasm");
|
|
|
|
console.log(WasmModule.add(1, 2));
|
|
console.log(WasmModule.subtract(9, 3));
|