Created
June 3, 2018 12:40
-
-
Save andrei-cacio/7e7e56f31e8b2eec9d60045c56b9fafd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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