add interval and timeout

This commit is contained in:
2023-03-25 23:35:11 +00:00
parent 0514783230
commit bf145db749
5 changed files with 126 additions and 2 deletions

View File

@@ -342,7 +342,7 @@ window.ArgonWASMRuntime = async (config = {}) => {
// func resetMemoryDataView()
"runtime.resetMemoryDataView": (sp) => {
sp >>>= 0;
this.mem = memory;
this.mem = new DataView(this._inst.exports.mem.buffer);
},
// func nanotime1() int64
"runtime.nanotime1": (sp) => {