Portable compiler sources that compile to both JavaScript using tsc
and, eventually, WebAssembly using asc
.
Note that using the compiler as a library requires awaiting Binaryen ready state, like so:
const binaryen = require("binaryen");
const assemblyscript = require("assemblyscript");
binaryen.ready.then(() => {
// do something with assemblyscript
});