Update loader to support environments where 'new WebAssembly.Instance' is limited, see #295

This commit is contained in:
dcodeIO
2018-10-04 13:16:39 +02:00
parent 63d4579118
commit e22524fab8
2 changed files with 97 additions and 63 deletions

View File

@ -0,0 +1,8 @@
<script>var exports = {};</script>
<script src="../index.js"></script>
<script>
(async () => {
var module = await exports.instantiateStreaming(fetch("./build/untouched.wasm"));
console.log(module);
})();
</script>