wasmbuild 0.0.2

wasmbuild starter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
import { assertEquals } from "https://deno.land/std@0.144.0/testing/asserts.ts";
import { instantiate } from "./lib/wasmbuild.generated.js";

const { add, strlen } = await instantiate();

Deno.test("should add numbers", () => {
  assertEquals(add(2, 5), 7);
});

Deno.test("should get strlen", () => {
  assertEquals(strlen("btwiuse"), 7);
});