Skip to content

Commit

Permalink
* switch to isSafeInteger
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Jan 22, 2024
1 parent 107eb74 commit e0d5458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/cljs/cljs/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@

(number? o)
(if ^boolean (js/isFinite o)
(if-not ^boolean (.isInteger js/Number o)
(if-not ^boolean (.isSafeInteger js/Number o)
(hash-double o)
(js-mod (Math/floor o) 2147483647))
(case o
Expand Down

0 comments on commit e0d5458

Please sign in to comment.