Skip to content

Commit c9cf1a7

Browse files
committed
handle case where repl might be nil
1 parent fecb3f8 commit c9cf1a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/clojure/cljs/repl/browser.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
(defmethod handle-post :print [{:keys [repl content order]} conn _]
244244
(constrain-order order
245245
(fn []
246-
(binding [*out* (.get outs repl)]
246+
(binding [*out* (or (and repl (.get outs repl)) *out*)]
247247
(print (read-string content))
248248
(.flush *out*))))
249249
(server/send-and-close conn 200 "ignore__"))

0 commit comments

Comments
 (0)