Skip to content

Commit

Permalink
remove EXPERIMENTAL from ES6 iterator support
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Nov 16, 2023
1 parent 8036032 commit 80acf18
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/main/cljs/cljs/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,6 @@
(= y (first more)))
false)))

;; EXPERIMENTAL: subject to change
(deftype ES6Iterator [^:mutable s]
Object
(next [_]
Expand All @@ -1326,7 +1325,7 @@
#js {:value nil :done true})))

(defn es6-iterator
"EXPERIMENTAL: Return a ES2015 compatible iterator for coll."
"Return a ES2015+ compatible iterator for coll."
[coll]
(ES6Iterator. (seq coll)))

Expand All @@ -1341,7 +1340,7 @@
_rest))

(defn es6-iterator-seq
"EXPERIMENTAL: Given an ES2015 compatible iterator return a seq."
"Given an ES2015+ compatible iterator return a seq."
[iter]
(let [v (.next iter)]
(if (.-done v)
Expand Down Expand Up @@ -6668,7 +6667,6 @@ reduces them without incurring seq initialization"
(.next ext-map-iter)))
(remove [_] (js/Error. "Unsupported operation")))

;; EXPERIMENTAL: subject to change
(deftype ES6EntriesIterator [^:mutable s]
Object
(next [_]
Expand All @@ -6681,7 +6679,6 @@ reduces them without incurring seq initialization"
(defn es6-entries-iterator [coll]
(ES6EntriesIterator. (seq coll)))

;; EXPERIMENTAL: subject to change
(deftype ES6SetEntriesIterator [^:mutable s]
Object
(next [_]
Expand Down Expand Up @@ -6964,8 +6961,6 @@ reduces them without incurring seq initialization"
(pr-str* coll))
(equiv [this other]
(-equiv this other))

;; EXPERIMENTAL: subject to change
(keys [coll]
(es6-iterator (keys coll)))
(entries [coll]
Expand Down Expand Up @@ -8080,8 +8075,6 @@ reduces them without incurring seq initialization"
(pr-str* coll))
(equiv [this other]
(-equiv this other))

;; EXPERIMENTAL: subject to change
(keys [coll]
(es6-iterator (keys coll)))
(entries [coll]
Expand Down Expand Up @@ -8954,8 +8947,6 @@ reduces them without incurring seq initialization"
(pr-str* coll))
(equiv [this other]
(-equiv this other))

;; EXPERIMENTAL: subject to change
(keys [coll]
(es6-iterator (keys coll)))
(entries [coll]
Expand Down Expand Up @@ -9384,8 +9375,6 @@ reduces them without incurring seq initialization"
(pr-str* coll))
(equiv [this other]
(-equiv this other))

;; EXPERIMENTAL: subject to change
(keys [coll]
(es6-iterator (seq coll)))
(entries [coll]
Expand Down Expand Up @@ -9545,8 +9534,6 @@ reduces them without incurring seq initialization"
(pr-str* coll))
(equiv [this other]
(-equiv this other))

;; EXPERIMENTAL: subject to change
(keys [coll]
(es6-iterator (seq coll)))
(entries [coll]
Expand Down

0 comments on commit 80acf18

Please sign in to comment.