Skip to content

Commit

Permalink
Fix extension of js/Symbol in favour of primitive (#147)
Browse files Browse the repository at this point in the history
Fixes warning on ClojureScript master

Co-authored-by: Dominic Monroe <[email protected]>
  • Loading branch information
2 people authored and lilactown committed Jun 10, 2024
1 parent 6737dbf commit 114e8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helix/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
(:require-macros [helix.core]))


(when (exists? js/Symbol)
(when (exists? symbol)
(extend-protocol IPrintWithWriter
js/Symbol
symbol
(-pr-writer [sym writer _]
(-write writer (str "\"" (.toString sym) "\"")))))

Expand Down

0 comments on commit 114e8e2

Please sign in to comment.