Skip to content

Commit 37a79e1

Browse files
committed
Fix REPL output, ported from squint
1 parent bb29a0f commit 37a79e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cherry/compiler.cljc

+2-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@
343343
opts (merge {:ns-state (atom {})}
344344
opts)]
345345
(loop [transpiled (if cc/*repl*
346-
(str "globalThis." cc/*cljs-ns* " = globalThis." cc/*cljs-ns* " || {};\n")
346+
(let [ns (munge cc/*cljs-ns*)]
347+
(str "globalThis." ns " = globalThis." ns " || {};\n"))
347348
"")]
348349
(let [opts (assoc opts :auto-resolve @*aliases*)
349350
next-form (e/parse-next rdr opts)]

0 commit comments

Comments
 (0)