mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-18 09:21:35 +00:00
Cleanup; Initial switch support; Relooper interface fwiw
This commit is contained in:
@ -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];
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user