Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created March 21, 2019 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/a9b30a665746f742df7ebe4030eda833 to your computer and use it in GitHub Desktop.
Save goofmint/a9b30a665746f742df7ebe4030eda833 to your computer and use it in GitHub Desktop.
WebAssembly.instantiateStreaming(fetch("../out/main.wasm"), {
main: {
sayHello() {
console.log("Hello from WebAssembly!");
}
},
env: {
abort(msg, file, line, column) {
console.error("abort called at main.ts:" + line + ":" + column);
}
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment