mirror of
https://github.com/denoland/deno.git
synced 2024-12-18 13:22:55 -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)); ```
6 lines
263 B
Text
6 lines
263 B
Text
Download http://localhost:4545/wasm/math.wasm
|
|
Check file:///[WILDLINE]/main.ts
|
|
error: TS2345 [ERROR]: Argument of type 'string' is not assignable to parameter of type 'number'.
|
|
console.log(add(1, ""));
|
|
~~
|
|
at file:///[WILDLINE]/main.ts:3:20
|