blob: 424255ba2463cfd54f0205002bcad08889b3e0b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<!doctype html>
<html>
<header>
<title> Scribblio </title>
<script>
var importObject = { imports: { imported_func: arg => console.log(arg) } };
WebAssembly.instantiateStreaming(fetch('pkg/asm_paint_bg.wasm'), importObject)
.then(obj => obj.instance.exports.exported_func());
</script>
</header>
<body>
</body>
</html>
|