Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…lity for Date.
  • Loading branch information...
commit e35c3a57472fa62ae41591418a73794dc8ac6dde 1 parent a788e0c
David Nolen swannodette authored

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. +6 1 src/cljs/cljs/core.cljs
7 src/cljs/cljs/core.cljs
@@ -219,7 +219,12 @@
219 219
220 220 (extend-type js/Date
221 221 IEquiv
222   - (-equiv [o other] (identical? (.toString o) (.toString other))))
  222 + (-equiv [o other] (identical? (. o (toString)) (. other (toString)))))
  223 +
  224 +(extend-type js/RegExp
  225 + IEquiv
  226 + (-equiv [o other]
  227 + (identical? (. o (toString)) (. other (toString)))))
223 228
224 229 (extend-type number
225 230 IEquiv

0 comments on commit e35c3a5

Please sign in to comment.
Something went wrong with that request. Please try again.