Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 452 Bytes
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Simple logging example</title>
</head>
<body>
<script>
var importObject = {
console: {
log: function(arg) {
console.log(arg);
}
}
};
WebAssembly.instantiateStreaming(fetch('logger.wasm'), importObject)
.then(obj => {
obj.instance.exports.logIt();
});
</script>
</body>
</html>
You can’t perform that action at this time.