Skip to content

Commit cc2554d

Browse files
mfikesswannodette
authored andcommitted
CLJS-2648: cljs.main: Failure running a script with browser REPL
1 parent 56c774b commit cc2554d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/clojure/cljs/cli.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ present"
314314
(repl/load-stream renv "<cljs repl>" *in*)
315315

316316
(.exists (io/file script))
317-
(repl/load-file renv script)
317+
(with-open [stream (io/reader script)]
318+
(repl/load-stream renv script stream))
318319

319320
(string/starts-with? script "@/")
320321
(if-let [rsrc (io/resource (subs script 2))]

0 commit comments

Comments
 (0)