Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 326 Bytes
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Simple call example</title>
</head>
<body>
<script>
WebAssembly.instantiateStreaming(fetch('call.wasm'))
.then(obj => {
console.log(obj.instance.exports.getAnswerPlus1()); // "43"
});
</script>
</body>
</html>
You can’t perform that action at this time.