Halcyon/index.html

24 lines
311 B
HTML
Raw Normal View History

2024-10-22 11:27:39 -05:00
<!DOCTYPE html>
<html>
<head>
</head>
<script>
const importObject = {
console: {
log(arg) {
console.log(arg);
}
}
};
WebAssembly.instantiateStreaming(fetch("/test.wasm"), importObject)
.then(obj => {
obj.instance.exports.main();
});
</script>
<body>
</body>
</html>