Skip to content

Commit 70a5cdf

Browse files
committed
CLJS-3339: cljs.core/hash should type hint call to js/isFinite
1 parent b153cac commit 70a5cdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/cljs/cljs/core.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@
10081008
(bit-xor (-hash o) 0)
10091009

10101010
(number? o)
1011-
(if (js/isFinite o)
1011+
(if ^boolean (js/isFinite o)
10121012
(js-mod (Math/floor o) 2147483647)
10131013
(case o
10141014
##Inf

0 commit comments

Comments
 (0)