Cleanup; Initial switch support; Relooper interface fwiw

This commit is contained in:
dcodeIO
2017-10-11 17:03:22 +02:00
parent 50116acede
commit 6e98c52f76
12 changed files with 646 additions and 383 deletions

View File

@ -1,12 +1,10 @@
const globalScope = typeof window !== "undefined" && window
|| typeof global !== "undefined" && global
|| self;
const globalScope: any = typeof window !== "undefined" && window || typeof global !== "undefined" && global || self;
globalScope["store"] = function store_u8(ptr, val) {
globalScope["store"] = function store_u8(ptr: number, val: number) {
binaryen.HEAPU8[ptr] = val;
};
globalScope["load"] = function load_u8(ptr) {
globalScope["load"] = function load_u8(ptr: number) {
return binaryen.HEAPU8[ptr];
};