Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

21 lines (15 sloc) 309 Bytes
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Simple add example</title>
</head>
<body>
<script>
WebAssembly.instantiateStreaming(fetch('add.wasm'))
.then(obj => {
console.log(obj.instance.exports.add(1, 2)); // "3"
});
</script>
</body>
</html>
You can’t perform that action at this time.