Remove debugging code accidentally added in #1416

This commit is contained in:
Alex Crichton
2019-04-08 07:49:58 -07:00
parent 16745edf3f
commit b6d041e4d5

View File

@@ -25,12 +25,7 @@
// Also note that the promise, when resolved, yields the wasm module's
// exports which is the same as importing the `*_bg` module in other
// modes
// await init('./pkg/without_a_bundler_bg.wasm');
const url = await fetch('http://localhost:8001/pkg/without_a_bundler_bg.wasm');
const body = await url.arrayBuffer();
const module = await WebAssembly.compile(body);
await init(module);
await init('./pkg/without_a_bundler_bg.wasm');
// And afterwards we can use all the functionality defined in wasm.
const result = add(1, 2);