diff --git a/README.md b/README.md index 295d8a4fb2..086633f01b 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,14 @@ Official web site: http://clojurescript.org ## Releases and dependency information ## -Latest stable release: 1.10.740 +Latest stable release: 1.10.741 * [All released versions](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22clojurescript%22) [Leiningen](http://github.com/technomancy/leiningen/) dependency information: ``` -[org.clojure/clojurescript "1.10.740"] +[org.clojure/clojurescript "1.10.741"] ``` [Maven](http://maven.apache.org) dependency information: @@ -22,7 +22,7 @@ Latest stable release: 1.10.740 org.clojure clojurescript - 1.10.740 + 1.10.741 ``` diff --git a/changes.md b/changes.md index 0bceec7cb4..184d53487c 100644 --- a/changes.md +++ b/changes.md @@ -1,4 +1,4 @@ -## 1.10.740 +## 1.10.741 ### Changes * Removed REPL/target support for Rhino, Nashorn, Graaljs diff --git a/src/main/cljs/cljs/core.cljs b/src/main/cljs/cljs/core.cljs index 520603cbd4..05b2f4e600 100644 --- a/src/main/cljs/cljs/core.cljs +++ b/src/main/cljs/cljs/core.cljs @@ -1208,7 +1208,8 @@ (defn js-iterable? "Return true if x has a JavaScript iterator property" [x] - (not (nil? (js* "~{}[~{}]" x ITER_SYMBOL)))) + (and (not (nil? x)) + (not (nil? (js* "~{}[~{}]" x ITER_SYMBOL))))) (defn clone "Clone the supplied value which must implement ICloneable." diff --git a/src/test/cljs/cljs/seqs_test.cljs b/src/test/cljs/cljs/seqs_test.cljs index 2fc52c9053..d9e56fcaf0 100644 --- a/src/test/cljs/cljs/seqs_test.cljs +++ b/src/test/cljs/cljs/seqs_test.cljs @@ -235,4 +235,5 @@ (deftest test-js-iterable? (testing "test that js-iterable? works on ES6 collections and normal values" (is (true? (js-iterable? (js/Set.)))) - (is (false? (js-iterable? 1))))) + (is (false? (js-iterable? 1))) + (is (false? (js-iterable? nil)))))