Fork me on GitHub
#cljs-dev
<
2020-01-24
>
borkdude15:01:25

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.

borkdude15:01:37

I tried older versions of CLJS and this bug seems to have been introduced in 1.10.439

borkdude15:01:39

Note that this only occurs while using the REPL, not when compiling normally

borkdude15:01:36

I'll make an issue