Skip to content

Commit 6f971aa

Browse files
authored
Update dummy.html
1 parent 065bfde commit 6f971aa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pages/dummy.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@
88
const utf8 = new TextDecoder();
99

1010
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-
}
11+
const res = await fetch(url);
12+
return await WebAssembly.instantiateStreaming(res, imports);
1713
}
1814

1915
async function loadGreetingFromWasm() {

0 commit comments

Comments
 (0)