wasm-test 0.1.0

A simple wasm test project.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>

<head>
    <script>
        fetch('wasm_test.gc.wasm')
            .then(r => r.arrayBuffer())
            .then(r => WebAssembly.instantiate(r))
            .then(wasm_module => {
                alert(`2 + 1 = ${wasm_module.instance.exports.add_one(2)}`);
                alert(`18 = ${wasm_module.instance.exports.iterators()}`);
            });
    </script>
</head>

<body></body>

</html>