We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 065bfde commit 6f971aaCopy full SHA for 6f971aa
pages/dummy.html
@@ -8,12 +8,8 @@
8
const utf8 = new TextDecoder();
9
10
async function instantiateWasm(url, imports = {}) {
11
- try {
12
- const res = await fetch(url);
13
- return await WebAssembly.instantiateStreaming(res, imports);
14
- } catch (e) {
15
- throw new Error(`Failed to fetch/instantiate WASM: ${e.message}`);
16
- }
+ const res = await fetch(url);
+ return await WebAssembly.instantiateStreaming(res, imports);
17
}
18
19
async function loadGreetingFromWasm() {
0 commit comments