Skip to content

Commit 75c82ed

Browse files
committed
Set IIterable impl, cljs.iterator-test now passing
1 parent 5ad974d commit 75c82ed

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13015,6 +13015,13 @@ reduces them without incurring seq initialization"
1301513015
(-invoke [coll k not-found]
1301613016
(-lookup coll k not-found))
1301713017

13018+
IIterable
13019+
(-iterator [coll]
13020+
(let [xs (-seq coll)]
13021+
(if (some? xs)
13022+
(-iterator xs)
13023+
(nil-iter))))
13024+
1301813025
IPrintWithWriter
1301913026
(-pr-writer [coll writer opts] (pr-sequential-writer writer pr-writer "#{" " " "}" opts coll)))
1302013027

src/test/cljs/lite_test_runner.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
'cljs.seqs-test
8181
'cljs.hashing-test
8282
'cljs.interop-test ;; ES6 stuff
83-
#_'cljs.iterator-test
83+
'cljs.iterator-test
8484
'cljs.reader-test
8585
'cljs.binding-test
8686
'cljs.parse-test

0 commit comments

Comments
 (0)