cljs-dev

ClojureScript compiler & std lib dev, https://clojurescript.org/community/dev
borkdude 2020-01-24T15:53:25.001600Z

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.

borkdude 2020-01-24T15:55:37.002300Z

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

borkdude 2020-01-24T15:57:39.002800Z

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

borkdude 2020-01-24T15:58:36.003Z

I'll make an issue

borkdude 2020-01-24T16:07:06.003200Z

https://clojure.atlassian.net/browse/CLJS-3206