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 65756aa commit 4f1e178Copy full SHA for 4f1e178
src/lib/wawasm.ts
@@ -5,7 +5,7 @@ import { importsObject } from './import-obj'
5
type TWasmInst = WebAssembly.Instance & {
6
exports: {
7
'_start': () => void
8
- '__main__.main': () => void
+ '_main': () => void
9
}
10
11
@@ -56,7 +56,7 @@ export async function runWa() {
56
const wasmInst = await WebAssembly.instantiate(module, importsObject) as TWasmInst
57
window.__WA_APP__.init(wasmInst)
58
wasmInst.exports._start()
59
- wasmInst.exports['__main__.main']()
+ wasmInst.exports['_main']()
60
useWasmStore.getState().actions.updateOutput(window.__WA_PRINT__)
61
useWasmStore.getState().actions.updateWat(window.__WA_WAT__)
62
0 commit comments