Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/cljs/cljs/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -10470,6 +10470,7 @@ reduces them without incurring seq initialization"
(js/isNaN obj) "##NaN"
(identical? obj js/Number.POSITIVE_INFINITY) "##Inf"
(identical? obj js/Number.NEGATIVE_INFINITY) "##-Inf"
(js/Object.is obj -0.0) "-0.0"
:else (str_ obj)))

(object? obj)
Expand Down
1 change: 1 addition & 0 deletions src/test/cljs/cljs/printing_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
(is (= (pr-str 1) "1"))
(is (= (pr-str -1) "-1"))
(is (= (pr-str -1.5) "-1.5"))
(is (= (pr-str -0.0) "-0.0"))
(is (= (pr-str [3 4]) "[3 4]"))
(is (= (pr-str "foo") "\"foo\""))
(is (= (pr-str :hello) ":hello"))
Expand Down
Loading