We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a596a8 commit 409b671Copy full SHA for 409b671
src/main/cljs/cljs/core.cljs
@@ -10470,6 +10470,7 @@ reduces them without incurring seq initialization"
10470
(js/isNaN obj) "##NaN"
10471
(identical? obj js/Number.POSITIVE_INFINITY) "##Inf"
10472
(identical? obj js/Number.NEGATIVE_INFINITY) "##-Inf"
10473
+ (js/Object.is obj -0.0) "-0.0"
10474
:else (str_ obj)))
10475
10476
(object? obj)
src/test/cljs/cljs/printing_test.cljs
@@ -74,6 +74,7 @@
74
(is (= (pr-str 1) "1"))
75
(is (= (pr-str -1) "-1"))
76
(is (= (pr-str -1.5) "-1.5"))
77
+ (is (= (pr-str -0.0) "-0.0"))
78
(is (= (pr-str [3 4]) "[3 4]"))
79
(is (= (pr-str "foo") "\"foo\""))
80
(is (= (pr-str :hello) ":hello"))
0 commit comments