Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

`
$ clj -m cljs.main -re rhino -r
ClojureScript 1.10.238
cljs.user=> (ns com.foo)

com.foo=> (def x 3)

'com.foo/x

com.foo=> x
org.mozilla.javascript.EcmaError: TypeError: Cannot call property cljs$lang$ctorPrWriter in object [JavaPackage com.foo.x]. It is not a function, it is "object". (/var/folders/gx/nymj3l7x4zq3gxb97v2zwzb40000gn/T/out314052489996668423318817887553502/goog/../cljs/core.js#32857)

 cljs$core$pr_writer_impl (cljs/core.cljs:9919:9)
 cljs.core/pr-writer (cljs/core.cljs:10003:5)
 cljs.core/pr-seq-writer (cljs/core.cljs:10006:4)
 cljs$core$pr_sb_with_opts (cljs/core.cljs:10014:6)
 cljs$core$pr_str_with_opts (cljs/core.cljs:10024:5)
 (cljs/core.cljs:10052:3)
 cljs$core$pr_str (cljs/core.cljs:10049:1)
 (<NO_SOURCE_FILE> <cljs repl>:1:0)

`

4 Answers

0 votes
by
0 votes
by

Comment made by: dnolen

See CLJS-2784. Reverting and lowering the priority on this one.

0 votes
by

Comment made by: thheller

Given that the error message contains {{JavaPackage com.foo.x}} is it possible that this affects anything that has a Java class loaded? Given that Java uses TLDs commonly how about org?

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-2770 (reported by mfikes)
...