tailrecursion/cljs-priority-map

Error: No reader function for tag tailrecursion.priority-map

Opened this issue · 0 comments

When we do pr-str and then read-string on a priority map, the reading fails.

I think this is because the priority-map reader is registered as a string, not a symbol.

CleanShot 2022-08-25 at 19 39 50@2x

To reproduce:

(cljs.reader/read-string (pr-str (pm/priority-map :a 1)))

To fix:

(cljs.reader/register-tag-parser! 'tailrecursion.priority-map pm/read-priority-map)