cljs.main: Sometimes print side effects don't properly occur prior to REPL

Description

Using built 1.10.138:

src/hello_world/core.cljs

1 2 3 (ns hello-world.core) (println "Hello world!")

Note that sometimes Hello world! is printed, and sometimes only a newline.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 $ clj -Srepro --main cljs.main --compile hello-world.core --repl Hello world! ClojureScript 1.10.138 cljs.user=> :cljs/quit $ clj -Srepro --main cljs.main --compile hello-world.core --repl ClojureScript 1.10.138 cljs.user=> :cljs/quit $ clj -Srepro --main cljs.main --compile hello-world.core --repl Hello world! ClojureScript 1.10.138 cljs.user=> :cljs/quit $ clj -Srepro --main cljs.main --compile hello-world.core --repl Hello world! ClojureScript 1.10.138 cljs.user=> :cljs/quit $ clj -Srepro --main cljs.main --compile hello-world.core --repl Hello world! ClojureScript 1.10.138 cljs.user=> :cljs/quit $ clj -Srepro --main cljs.main --compile hello-world.core --repl ClojureScript 1.10.138 cljs.user=> :cljs/quit

Environment

{:deps {org.clojure/clojurescript {:mvn/version "1.10.138"}}}
macOS
Safari

Status

Assignee

Unassigned

Reporter

Mike Fikes

Labels

None

Approval

None

Patch

None

Priority

Major
Configure