We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abab634 commit 6c87ca7Copy full SHA for 6c87ca7
1 file changed
native.ts
@@ -7,7 +7,11 @@ export interface Native {
7
length(ct: number): number;
8
}
9
10
-const wasm = await Deno.readFile(new URL("./clayterm.wasm", import.meta.url));
+import { readFile } from "node:fs/promises";
11
+
12
+const wasm = new Uint8Array(
13
+ await readFile(new URL("./clayterm.wasm", import.meta.url)),
14
+);
15
const compiled = await WebAssembly.compile(wasm);
16
17
export async function load(w: number, h: number): Promise<Native> {
0 commit comments