How to import javascript function from Wasm?
I'm trying to import a javascript function from Wasm.
For the
And I'm using AssemblyScript for the Wasm side:
Since I commented the
However, when I un-commented it as:
I got an error after
Just wondering what's the appropriate way to import javascript function from Wasm?
For the
worker.ts, I defined a function consoleLog:And I'm using AssemblyScript for the Wasm side:
Since I commented the
//consoleLog(100); out, it works well after compile:However, when I un-commented it as:
I got an error after
asc:Just wondering what's the appropriate way to import javascript function from Wasm?