Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…handle undefined
  • Loading branch information...
commit 2cd15f8ee1d8a91362a74d023065fbf64f8629bd 1 parent 53bcb8b
David Nolen authored
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))
Please sign in to comment.
Something went wrong with that request. Please try again.