You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cljs.user=> (clojure.string/trimr 2)
str.replace is not a function. (In 'str.replace(/[\s\xa0]+$/, '')', 'str.replace' is undefined)
trimRight (goog/string/string.cljs:367:21)
clojure.string/trimr (clojure/string.cljs:180:4)
The text was updated successfully, but these errors were encountered:
mfikes
changed the title
string.js reported as string.cljs
goog/string/string.js reported as string.cljs
Feb 5, 2018
Yes, this does appear to be upstream. In JVM-based REPLs the source mapping code takes a look at the .map file on disk and gleans some information on the original filename, but for self-hosted, we end up using the code directly in the cljs.stacktrace namespace where it blindly assumes all JavaScript files are produced from .cljs sources.
With the attached experimental patch, the behavior changes to
cljs.user=> (clojure.string/trimr 2)
str.replace is not a function. (In 'str.replace(/[\s\xa0]+$/, '')', 'str.replace' is undefined)
trimRight (goog/string/string.js:367:21)
clojure.string/trimr (clojure/string.cljs:209:4)
There doesn't appear to be a decent way to fix this upstream. For now, just having Planck check whether the a .cljs file exists before assuming that the source was originally .cljs.
The text was updated successfully, but these errors were encountered: