File tree 4 files changed +10
-5
lines changed
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
6
6
7
7
## Releases and dependency information ##
8
8
9
- Latest stable release: 1.10.739
9
+ Latest stable release: 1.10.740
10
10
11
11
* [ All released versions] ( http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22clojurescript%22 )
12
12
13
13
[ Leiningen] ( http://github.com/technomancy/leiningen/ ) dependency information:
14
14
15
15
```
16
- [org.clojure/clojurescript "1.10.739 "]
16
+ [org.clojure/clojurescript "1.10.740 "]
17
17
```
18
18
19
19
[ Maven] ( http://maven.apache.org ) dependency information:
@@ -22,7 +22,7 @@ Latest stable release: 1.10.739
22
22
<dependency>
23
23
<groupId>org.clojure</groupId>
24
24
<artifactId>clojurescript</artifactId>
25
- <version>1.10.739 </version>
25
+ <version>1.10.740 </version>
26
26
</dependency>
27
27
```
28
28
Original file line number Diff line number Diff line change 1
- ## 1.10.739
1
+ ## 1.10.740
2
2
3
3
### Changes
4
4
* Removed REPL/target support for Rhino, Nashorn, Graaljs
Original file line number Diff line number Diff line change 1208
1208
(defn js-iterable?
1209
1209
" Return true if x has a JavaScript iterator property"
1210
1210
[x]
1211
- (gobject/containsKey x ITER_SYMBOL))
1211
+ (not ( nil? ( js* " ~{}[~{}] " x ITER_SYMBOL)) ))
1212
1212
1213
1213
(defn clone
1214
1214
" Clone the supplied value which must implement ICloneable."
Original file line number Diff line number Diff line change 231
231
(is (= () (rest s)))
232
232
(is (nil? (next s)))
233
233
(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