Skip to content

Instantly share code, notes, and snippets.

@andrei-cacio
Created June 3, 2018 12:40
Show Gist options
  • Save andrei-cacio/7e7e56f31e8b2eec9d60045c56b9fafd to your computer and use it in GitHub Desktop.
Save andrei-cacio/7e7e56f31e8b2eec9d60045c56b9fafd to your computer and use it in GitHub Desktop.
fetch('memory-access.gc.wasm')
.then(r => r.arrayBuffer())
.then(arrayBuff => WebAssembly.instantiate(arrBuff, {}))
.then(rustWasm => console.log(rustWasm));
// Object { module: WebAssembly.Module, instance: WebAssembly.Instance }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment