<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Lua in the browser</title>
</head>
<body>
    <script>
        fetch('lib/lua.wasm')
            .then(response => response.arrayBuffer())
            .then(bytes => WebAssembly.instantiate(bytes, {
                env: {},
            }))
            .then(result => {
                throw new Error("look at me");
                const lua = result.instance.exports;
            });
    </script>
</body>
</html>
