This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-21
Channels
- # announcements (8)
- # babashka (12)
- # beginners (18)
- # biff (25)
- # calva (8)
- # clj-kondo (19)
- # clojure (53)
- # clojure-europe (3)
- # clojure-norway (3)
- # clojurescript (31)
- # emacs (9)
- # fulcro (12)
- # lsp (25)
- # membrane (1)
- # off-topic (58)
- # pathom (11)
- # pedestal (1)
- # proletarian (3)
- # re-frame (6)
- # releases (2)
- # shadow-cljs (7)
hmm, this seems like a bug…
cljs.user> (sort [1 (js/BigInt. 2)])
Execution error (IllegalArgumentException) at shadow.build.cljs-hacks/eval117228$fn (cljs_hacks.cljc:981).
No matching clause:
js/BigInt
isnt a constructor, try removing the dot. This will fail anyway since you can't compare BigInts to regular numbers
With shadow-cljs 2.20.20 and node.js 18.12.1:
cljs.user> (sort (vector 1 (js/BigInt 2)))
Execution error (Error) at (<cljs repl>:1).
Cannot compare 2 to 1
:repl/exception!
Yeah I was trying for the failure, so I could implement a better compare. It does work as a constructor by the way!
I’ve upgraded shadow… what was happening was my repl would break with that error and then never recover. So odd.
with 2.17.4