File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ Official web site: http://clojurescript.org
66
77## Releases and dependency information ##
88
9- Latest stable release: 1.10.739
9+ Latest stable release: 1.10.740
1010
1111* [ All released versions] ( http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22clojurescript%22 )
1212
1313[ Leiningen] ( http://github.com/technomancy/leiningen/ ) dependency information:
1414
1515```
16- [org.clojure/clojurescript "1.10.739 "]
16+ [org.clojure/clojurescript "1.10.740 "]
1717```
1818
1919[ Maven] ( http://maven.apache.org ) dependency information:
@@ -22,7 +22,7 @@ Latest stable release: 1.10.739
2222<dependency>
2323 <groupId>org.clojure</groupId>
2424 <artifactId>clojurescript</artifactId>
25- <version>1.10.739 </version>
25+ <version>1.10.740 </version>
2626</dependency>
2727```
2828
Original file line number Diff line number Diff line change 1- ## 1.10.739
1+ ## 1.10.740
22
33### Changes
44* Removed REPL/target support for Rhino, Nashorn, Graaljs
Original file line number Diff line number Diff line change 12081208(defn js-iterable?
12091209 " Return true if x has a JavaScript iterator property"
12101210 [x]
1211- (gobject/containsKey x ITER_SYMBOL))
1211+ (not ( nil? ( js* " ~{}[~{}] " x ITER_SYMBOL)) ))
12121212
12131213(defn clone
12141214 " Clone the supplied value which must implement ICloneable."
Original file line number Diff line number Diff line change 231231 (is (= () (rest s)))
232232 (is (nil? (next s)))
233233 (is (empty? s)))))
234+
235+ (deftest test-js-iterable?
236+ (testing " test that js-iterable? works on ES6 collections and normal values"
237+ (is (true ? (js-iterable? (js/Set. ))))
238+ (is (false ? (js-iterable? 1 )))))
You can’t perform that action at this time.
0 commit comments