I have a .cljc file with this content:
(ns foo)
(def ^:const macros
'#{do if and or quote let fn def defn
lazy-seq require try syntax-quote case . in-ns set!
macroexpand-1 macroexpand})
When running this from the REPL it fails with:
$ clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.597"}}}' -m cljs.main -re node -e "(require '[foo])"
Unexpected error compiling at (<cljs repl>:1:1).
Not supported: class cljs.repl$init_wrap_fn
The ^:const
meta seems to make the analyzer write a function to the analysis cache and this gives a transit error.I tried older versions of CLJS and this bug seems to have been introduced in 1.10.439
Note that this only occurs while using the REPL, not when compiling normally
I'll make an issue