From 35127b79405e5dff6d9b74dfc674280eb93fab6d Mon Sep 17 00:00:00 2001 From: Dominic Monroe Date: Tue, 30 Jan 2024 00:08:33 +0000 Subject: [PATCH] Fix extension of js/Symbol in favour of primitive (#147) Fixes warning on ClojureScript master Co-authored-by: Dominic Monroe --- src/helix/core.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helix/core.cljs b/src/helix/core.cljs index a0d49cf..fcf3745 100644 --- a/src/helix/core.cljs +++ b/src/helix/core.cljs @@ -9,9 +9,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) "\"")))))