We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e661314 commit a00c8f3Copy full SHA for a00c8f3
src/main/cljs/cljs/core.cljs
@@ -1330,7 +1330,7 @@
1330
[iter]
1331
(let [v (.next iter)]
1332
(if (.-done v)
1333
- ()
+ nil
1334
(ES6IteratorSeq. (.-value v) iter nil))))
1335
1336
;;;;;;;;;;;;;;;;;;; Murmur3 Helpers ;;;;;;;;;;;;;;;;
src/test/cljs/cljs/seqs_test.cljs
@@ -224,3 +224,10 @@
224
(deftest test-cljs-2911
225
(testing "partition-by works correclty with infinite seqs"
226
(is (= (first (second (partition-by zero? (range)))) 1))))
227
+
228
+(deftest test-cljs-3230
229
+ (testing "sequence ops on ES6 collections"
230
+ (let [s (js/Set.)]
231
+ (is (= () (rest s)))
232
+ (is (nil? (next s)))
233
+ (is (empty? s)))))
0 commit comments