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) => {

View File

@@ -67,7 +67,7 @@
<body>
<h1>Argon WASM Runtime Example</h1>
<button id="run" class="runButton">run</button>
<textarea id="editbox" class="editbox" spellcheck="flase" autocapitalize="false">
<textarea id="editbox" class="editbox" spellcheck="false" autocapitalize="false">
term.log("hello world")</textarea
>
<pre