Skip to content

Commit 2cc8f92

Browse files
anmonteiroswannodette
authored andcommitted
CLJS-1727: Regression when evaluating non-sequential forms at the REPL
1 parent e2db5d9 commit 2cc8f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/clojure/cljs/repl.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@
485485
(wrap form) nil opts))))]
486486
;; NOTE: means macros which expand to ns aren't supported for now
487487
;; when eval'ing individual forms at the REPL - David
488-
(when (= 'ns (first form))
488+
(when (and (sequential? form) (= 'ns (first form)))
489489
(let [ast (ana/analyze env form nil opts)]
490490
(load-dependencies repl-env
491491
(into (vals (:requires ast))

0 commit comments

Comments
 (0)