mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-31 03:51:56 +00:00
Remove debugging code accidentally added in #1416
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user