How to import javascript function from Wasm?
I'm trying to import a 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?1 Reply
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View