Skip to content

Commit

Permalink
CLJS-330: fix (hash js/undefined)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmarczyk authored and David Nolen committed Jul 4, 2012
1 parent 56adcc5 commit 76a3335
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cljs/cljs/core.cljs
Expand Up @@ -395,7 +395,8 @@

(extend-type default
IHash
(-hash [o] (goog.getUid o)))
(-hash [o]
(if (nil? o) 0 (goog.getUid o))))

;;this is primitive because & emits call to array-seq
(defn inc
Expand Down

0 comments on commit 76a3335

Please sign in to comment.