Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* src/cljs/cljs/core.cljs: CLJS-68: fix equality for RegExp. fix equa…

…lity for Date.
  • Loading branch information...
commit e35c3a57472fa62ae41591418a73794dc8ac6dde 1 parent a788e0c
@swannodette swannodette authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/cljs/cljs/core.cljs
View
7 src/cljs/cljs/core.cljs
@@ -219,7 +219,12 @@
(extend-type js/Date
IEquiv
- (-equiv [o other] (identical? (.toString o) (.toString other))))
+ (-equiv [o other] (identical? (. o (toString)) (. other (toString)))))
+
+(extend-type js/RegExp
+ IEquiv
+ (-equiv [o other]
+ (identical? (. o (toString)) (. other (toString)))))
(extend-type number
IEquiv
Please sign in to comment.
Something went wrong with that request. Please try again.