Thanks Thomas,
That was very helpful. I tried your suggestion and it works in JVM
ClojureScript. That method does not work on bootstrapped ClojureScript
though.
As far as I understand this is a result of bootstrapped ClojureScript
evaluating the .clj(c) file in the same JavaScript environment.
Bootstrapped ClojureScript tries to emulate the separate compilation
phase by putting all vars defined in the .clj file in a new namespace
ending with `$macros` suffix.
In other words, I had to do something like the following in order for my
assertion to work on both JVM and bootstrapped ClojureScript:
> (defmethod #?(:cljs cljs.test$macros/assert-expr
> :clj cljs.test/assert-expr)
> ...
Is this the best way to achieve this?
Thanks,
JS