mirror of
https://github.com/exoticorn/microw8.git
synced 2026-11-13 23:17:19 +01:00
add support for global vars
This commit is contained in:
1 parent
b474f2581e
commit
39121acd24
4 files changed
+269
-89
No files matched your search
@@ -92,6 +92,10 @@ async function runModule(data) {
|
||||
importObject.env['reserved' + i] = () => { };
|
||||
}
|
||||
|
||||
for (let i = 0; i < 16; ++i) {
|
||||
importObject.env['g_reserved' + i] = 0;
|
||||
}
|
||||
|
||||
let instance = new WebAssembly.Instance(await WebAssembly.compile(data), importObject);
|
||||
|
||||
let buffer = imageData.data;
|
||||
|
||||
Reference in new issue
Block a user