From 361534b209334e8faaaece890da08faf32b79c20 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 18 May 2021 13:49:22 -0400 Subject: Tag errors with source location --- docs/repl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/repl.js') diff --git a/docs/repl.js b/docs/repl.js index 35422125..11258d62 100644 --- a/docs/repl.js +++ b/docs/repl.js @@ -27,13 +27,13 @@ let repl = ()=>{ setTimeout(() => { try { let out=[]; sysvals.show = (x,w) => { out.push(x); return x; } - let c=compile(src,rt_sys); + let c=wrapcomp(compile)(src,rt_sys); setExplain(src,c); out.push(run.apply(null,c)); doc.rslt.textContent=out.map(fmt).join('\n'); } catch(e) { doc.rslt.classList.add('err'); - doc.rslt.textContent=fmtErr(src,e); + doc.rslt.textContent=fmtErr(e); } sysvals.js=dojs; // In case it was disabled by fragment loading }, 0); -- cgit v1.2.3