Skip to content

Commit c31e77c

Browse files
committed
vector is an inlining macro, so can't handle it only as a pass - need to add a case to macro expansion
1 parent 94c1886 commit c31e77c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/clojure/cljs/analyzer.cljc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4077,8 +4077,10 @@
40774077
(if (and (some? nsym) (symbol? nsym))
40784078
(.findInternedVar ^clojure.lang.Namespace
40794079
#?(:clj (find-ns nsym) :cljs (find-macros-ns nsym)) sym)
4080-
(.findInternedVar ^clojure.lang.Namespace
4081-
#?(:clj (find-ns 'cljs.core) :cljs (find-macros-ns impl/CLJS_CORE_MACROS_SYM)) sym)))))))
4080+
;; can't be done as compiler pass because macros get to run first
4081+
(when-not (and (lite-mode?) (= 'vector sym))
4082+
(.findInternedVar ^clojure.lang.Namespace
4083+
#?(:clj (find-ns 'cljs.core) :cljs (find-macros-ns impl/CLJS_CORE_MACROS_SYM)) sym))))))))
40824084

40834085
(defn get-expander
40844086
"Given a sym, a symbol identifying a macro, and env, an analysis environment

0 commit comments

Comments
 (0)