Skip to content

Commit

Permalink
Fix REPL output, ported from squint
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Sep 23, 2024
1 parent bb29a0f commit 37a79e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cherry/compiler.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@
opts (merge {:ns-state (atom {})}
opts)]
(loop [transpiled (if cc/*repl*
(str "globalThis." cc/*cljs-ns* " = globalThis." cc/*cljs-ns* " || {};\n")
(let [ns (munge cc/*cljs-ns*)]
(str "globalThis." ns " = globalThis." ns " || {};\n"))
"")]
(let [opts (assoc opts :auto-resolve @*aliases*)
next-form (e/parse-next rdr opts)]
Expand Down

0 comments on commit 37a79e1

Please sign in to comment.