diff options
author | Louis Pilfold <louis@lpil.uk> | 2024-03-04 17:27:18 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-03-04 17:27:18 +0000 |
commit | 970c3b6e00c12edd8cf68793673b5da0a2ca4255 (patch) | |
tree | 115dd50b8524cf9e3efe9717cd04a96a1b17b01e /static | |
parent | 6d69cee90a3c79b3fcc79deeea4336b077bd40fe (diff) | |
download | tour-970c3b6e00c12edd8cf68793673b5da0a2ca4255.tar.gz tour-970c3b6e00c12edd8cf68793673b5da0a2ca4255.zip |
Update to Gleam v1.0.0
Diffstat (limited to 'static')
-rw-r--r-- | static/worker.js | 6 |
1 files changed, 1 insertions, 5 deletions
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); |