Permalink
Browse files

* src/clj/cljs/core.clj: nil? needs to use coercive-not=, we need to …

…handle undefined
  • Loading branch information...
1 parent 53bcb8b commit 2cd15f8ee1d8a91362a74d023065fbf64f8629bd David Nolen committed May 3, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/clj/cljs/core.clj
  2. +1 −1 src/cljs/cljs/core.cljs
View
2 src/clj/cljs/core.clj
@@ -52,7 +52,7 @@
(vary-meta e assoc :tag 'boolean))
(defmacro nil? [x]
- `(identical? ~x nil))
+ `(coercive-= ~x nil))
;; internal - do not use.
(defmacro coercive-not= [x y]
View
2 src/cljs/cljs/core.cljs
@@ -281,7 +281,7 @@
(defn ^boolean nil?
"Returns true if x is nil, false otherwise."
[x]
- (identical? x nil))
+ (coercive-= x nil))
(defn type [x]
(if (or (nil? x) (undefined? x))

0 comments on commit 2cd15f8

Please sign in to comment.