Skip to content

Commit 4f1e178

Browse files
committed
zz
1 parent 65756aa commit 4f1e178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/wawasm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { importsObject } from './import-obj'
55
type TWasmInst = WebAssembly.Instance & {
66
exports: {
77
'_start': () => void
8-
'__main__.main': () => void
8+
'_main': () => void
99
}
1010
}
1111

@@ -56,7 +56,7 @@ export async function runWa() {
5656
const wasmInst = await WebAssembly.instantiate(module, importsObject) as TWasmInst
5757
window.__WA_APP__.init(wasmInst)
5858
wasmInst.exports._start()
59-
wasmInst.exports['__main__.main']()
59+
wasmInst.exports['_main']()
6060
useWasmStore.getState().actions.updateOutput(window.__WA_PRINT__)
6161
useWasmStore.getState().actions.updateWat(window.__WA_WAT__)
6262
}

0 commit comments

Comments
 (0)