Skip to content

Commit 98702e7

Browse files
author
dnolen
committed
fix bad cljs.analyzer/analyze calls in cljs.repl
1 parent a100ac9 commit 98702e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/clj/cljs/repl.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@
386386
(evaluate-form repl-env env filename form wrap *repl-opts*))
387387
([repl-env env filename form wrap opts]
388388
(binding [ana/*cljs-file* filename]
389-
(let [ast (ana/analyze env form opts)
389+
(let [ast (ana/analyze env form nil opts)
390390
js (comp/emit-str ast)
391391
wrap-js
392392
;; TODO: check opts as well - David
@@ -398,7 +398,7 @@
398398
(let [js (comp/emit-str
399399
(ana/no-warn
400400
(ana/analyze (assoc env :repl-env repl-env)
401-
(wrap form) opts)))
401+
(wrap form) nil opts)))
402402
t (System/currentTimeMillis)]
403403
(str js
404404
"\n//# sourceURL=repl-" t ".js"
@@ -418,7 +418,7 @@
418418
(comp/emit-str
419419
(ana/no-warn
420420
(ana/analyze (assoc env :repl-env repl-env)
421-
(wrap form) opts))))]
421+
(wrap form) nil opts))))]
422422
(when (= (:op ast) :ns)
423423
(load-dependencies repl-env
424424
(into (vals (:requires ast))

0 commit comments

Comments
 (0)