diff options
-rwxr-xr-x | bin/download-compiler | 2 | ||||
-rw-r--r-- | static/worker.js | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/bin/download-compiler b/bin/download-compiler index 675404f..a8b9557 100755 --- a/bin/download-compiler +++ b/bin/download-compiler @@ -2,7 +2,7 @@ set -eu -VERSION="v0.34.1" +VERSION="v1.0.0" rm -fr wasm-compiler mkdir wasm-compiler diff --git a/static/worker.js b/static/worker.js index a3c4a51..7a3db05 100644 --- a/static/worker.js +++ b/static/worker.js @@ -16,10 +16,6 @@ console.log = (...args) => { logged += args.map((e) => `${e}`).join(" ") + "\n"; }; -function resetLogCapture() { - logged = ""; -} - async function loadProgram(js) { const url = new URL(import.meta.url); url.pathname = ""; @@ -36,6 +32,7 @@ async function loadProgram(js) { } async function compileEval(code) { + logged = ""; const result = { log: null, error: null, @@ -47,7 +44,6 @@ async function compileEval(code) { project.compilePackage("javascript"); const js = project.readCompiledJavaScript("main"); const main = await loadProgram(js); - resetLogCapture(); if (main) main(); } catch (error) { console.error(error); |