ClojureScript

Problem with namespaces starting with com in Rhino

Details

  • Type: Defect Defect
  • Status: Reopened Reopened
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    {:deps {org.clojure/clojurescript {:mvn/version "1.10.238"}}}
  • Approval:
    Screened

Description

$ 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)

Activity

Hide
David Nolen added a comment -

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

Show
David Nolen added a comment - See CLJS-2784. Reverting and lowering the priority on this one.
Hide
Thomas Heller added a comment -

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?

Show
Thomas Heller added a comment - 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?

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: