commit 9dcb4ea4f22dfc2f77fc6b06632875b20403d449
parent a4c9c0cf30b9b6aee5b7b88b8adebc392aac957c
Author: finwo <finwo@pm.me>
Date: Thu, 23 May 2024 21:42:00 +0200
DEBUG - logging bufferSource to see what's going on
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/index.ts b/src/index.ts
@@ -1,4 +1,5 @@
import { binary } from './supercop.wasm';
+import { readFileSync } from 'fs';
const Module = (async () => {
const memory = new WebAssembly.Memory({initial: 4});
@@ -8,6 +9,8 @@ const Module = (async () => {
imports.env.__heap_base = new WebAssembly.Global({value: 'i32', mutable: true});
}
+ console.log({ bufferSource: binary });
+ console.log(readFileSync('./supercop.wasm.ts').toString('utf-8'));
const program = await WebAssembly.instantiate(binary, imports);
return {