33=== builtinIterator.ts ===
44const iterator = Iterator.from([0, 1, 2]);
55>iterator : Symbol(iterator, Decl(builtinIterator.ts, 0, 5))
6- >Iterator.from : Symbol(IteratorConstructor.from, Decl(lib.esnext .iterator.d.ts, --, --))
7- >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
8- >from : Symbol(IteratorConstructor.from, Decl(lib.esnext .iterator.d.ts, --, --))
6+ >Iterator.from : Symbol(IteratorConstructor.from, Decl(lib.es2025 .iterator.d.ts, --, --))
7+ >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
8+ >from : Symbol(IteratorConstructor.from, Decl(lib.es2025 .iterator.d.ts, --, --))
99
1010const mapped = iterator.map(String);
1111>mapped : Symbol(mapped, Decl(builtinIterator.ts, 2, 5))
12- >iterator.map : Symbol(IteratorObject.map, Decl(lib.esnext .iterator.d.ts, --, --))
12+ >iterator.map : Symbol(IteratorObject.map, Decl(lib.es2025 .iterator.d.ts, --, --))
1313>iterator : Symbol(iterator, Decl(builtinIterator.ts, 0, 5))
14- >map : Symbol(IteratorObject.map, Decl(lib.esnext .iterator.d.ts, --, --))
14+ >map : Symbol(IteratorObject.map, Decl(lib.es2025 .iterator.d.ts, --, --))
1515>String : Symbol(String, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --) ... and 7 more)
1616
1717const filtered = iterator.filter(x => x > 0);
1818>filtered : Symbol(filtered, Decl(builtinIterator.ts, 4, 5))
19- >iterator.filter : Symbol(IteratorObject.filter, Decl(lib.esnext .iterator.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
19+ >iterator.filter : Symbol(IteratorObject.filter, Decl(lib.es2025 .iterator.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
2020>iterator : Symbol(iterator, Decl(builtinIterator.ts, 0, 5))
21- >filter : Symbol(IteratorObject.filter, Decl(lib.esnext .iterator.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
21+ >filter : Symbol(IteratorObject.filter, Decl(lib.es2025 .iterator.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
2222>x : Symbol(x, Decl(builtinIterator.ts, 4, 33))
2323>x : Symbol(x, Decl(builtinIterator.ts, 4, 33))
2424
@@ -32,16 +32,16 @@ function isZero(x: number): x is 0 {
3232}
3333const zero = iterator.filter(isZero);
3434>zero : Symbol(zero, Decl(builtinIterator.ts, 9, 5))
35- >iterator.filter : Symbol(IteratorObject.filter, Decl(lib.esnext .iterator.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
35+ >iterator.filter : Symbol(IteratorObject.filter, Decl(lib.es2025 .iterator.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
3636>iterator : Symbol(iterator, Decl(builtinIterator.ts, 0, 5))
37- >filter : Symbol(IteratorObject.filter, Decl(lib.esnext .iterator.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
37+ >filter : Symbol(IteratorObject.filter, Decl(lib.es2025 .iterator.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
3838>isZero : Symbol(isZero, Decl(builtinIterator.ts, 4, 45))
3939
4040const iteratorFromBare = Iterator.from({
4141>iteratorFromBare : Symbol(iteratorFromBare, Decl(builtinIterator.ts, 11, 5))
42- >Iterator.from : Symbol(IteratorConstructor.from, Decl(lib.esnext .iterator.d.ts, --, --))
43- >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
44- >from : Symbol(IteratorConstructor.from, Decl(lib.esnext .iterator.d.ts, --, --))
42+ >Iterator.from : Symbol(IteratorConstructor.from, Decl(lib.es2025 .iterator.d.ts, --, --))
43+ >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
44+ >from : Symbol(IteratorConstructor.from, Decl(lib.es2025 .iterator.d.ts, --, --))
4545
4646 next() {
4747>next : Symbol(next, Decl(builtinIterator.ts, 11, 40))
@@ -50,7 +50,7 @@ const iteratorFromBare = Iterator.from({
5050 done: Math.random() < .5,
5151>done : Symbol(done, Decl(builtinIterator.ts, 13, 12))
5252>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
53- >Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.esnext .float16.d.ts, --, --))
53+ >Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2025 .float16.d.ts, --, --))
5454>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
5555
5656 value: "a string",
@@ -69,25 +69,25 @@ function* gen() {
6969
7070const mappedGen = gen().map(x => x === 0 ? "zero" : "other");
7171>mappedGen : Symbol(mappedGen, Decl(builtinIterator.ts, 25, 5))
72- >gen().map : Symbol(IteratorObject.map, Decl(lib.esnext .iterator.d.ts, --, --))
72+ >gen().map : Symbol(IteratorObject.map, Decl(lib.es2025 .iterator.d.ts, --, --))
7373>gen : Symbol(gen, Decl(builtinIterator.ts, 18, 3))
74- >map : Symbol(IteratorObject.map, Decl(lib.esnext .iterator.d.ts, --, --))
74+ >map : Symbol(IteratorObject.map, Decl(lib.es2025 .iterator.d.ts, --, --))
7575>x : Symbol(x, Decl(builtinIterator.ts, 25, 28))
7676>x : Symbol(x, Decl(builtinIterator.ts, 25, 28))
7777
7878const mappedValues = [0, 1, 2].values().map(x => x === 0 ? "zero" : "other");
7979>mappedValues : Symbol(mappedValues, Decl(builtinIterator.ts, 27, 5))
80- >[0, 1, 2].values().map : Symbol(IteratorObject.map, Decl(lib.esnext .iterator.d.ts, --, --))
80+ >[0, 1, 2].values().map : Symbol(IteratorObject.map, Decl(lib.es2025 .iterator.d.ts, --, --))
8181>[0, 1, 2].values : Symbol(Array.values, Decl(lib.es2015.iterable.d.ts, --, --))
8282>values : Symbol(Array.values, Decl(lib.es2015.iterable.d.ts, --, --))
83- >map : Symbol(IteratorObject.map, Decl(lib.esnext .iterator.d.ts, --, --))
83+ >map : Symbol(IteratorObject.map, Decl(lib.es2025 .iterator.d.ts, --, --))
8484>x : Symbol(x, Decl(builtinIterator.ts, 27, 44))
8585>x : Symbol(x, Decl(builtinIterator.ts, 27, 44))
8686
8787
8888class GoodIterator extends Iterator<number> {
8989>GoodIterator : Symbol(GoodIterator, Decl(builtinIterator.ts, 27, 77))
90- >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
90+ >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
9191
9292 next() {
9393>next : Symbol(GoodIterator.next, Decl(builtinIterator.ts, 30, 45))
@@ -101,23 +101,23 @@ class GoodIterator extends Iterator<number> {
101101
102102// error cases
103103new Iterator<number>();
104- >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
104+ >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
105105
106106class C extends Iterator<number> {}
107107>C : Symbol(C, Decl(builtinIterator.ts, 37, 23))
108- >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
108+ >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
109109
110110// it's unfortunate that these are an error
111111class BadIterator1 extends Iterator<number> {
112112>BadIterator1 : Symbol(BadIterator1, Decl(builtinIterator.ts, 39, 35))
113- >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
113+ >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
114114
115115 next() {
116116>next : Symbol(BadIterator1.next, Decl(builtinIterator.ts, 42, 45))
117117
118118 if (Math.random() < .5) {
119119>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
120- >Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.esnext .float16.d.ts, --, --))
120+ >Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2025 .float16.d.ts, --, --))
121121>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
122122
123123 return { done: false, value: 0 } as const;
@@ -136,7 +136,7 @@ class BadIterator1 extends Iterator<number> {
136136
137137class BadIterator2 extends Iterator<number> {
138138>BadIterator2 : Symbol(BadIterator2, Decl(builtinIterator.ts, 50, 1))
139- >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
139+ >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
140140
141141 next() {
142142>next : Symbol(BadIterator2.next, Decl(builtinIterator.ts, 52, 45))
@@ -149,14 +149,14 @@ class BadIterator2 extends Iterator<number> {
149149
150150class BadIterator3 extends Iterator<number> {
151151>BadIterator3 : Symbol(BadIterator3, Decl(builtinIterator.ts, 56, 1))
152- >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
152+ >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
153153
154154 next() {
155155>next : Symbol(BadIterator3.next, Decl(builtinIterator.ts, 58, 45))
156156
157157 if (Math.random() < .5) {
158158>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
159- >Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.esnext .float16.d.ts, --, --))
159+ >Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2025 .float16.d.ts, --, --))
160160>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
161161
162162 return { done: false, value: 0 };
@@ -177,19 +177,19 @@ declare const g1: Generator<string, number, boolean>;
177177
178178const iter1 = Iterator.from(g1);
179179>iter1 : Symbol(iter1, Decl(builtinIterator.ts, 69, 5))
180- >Iterator.from : Symbol(IteratorConstructor.from, Decl(lib.esnext .iterator.d.ts, --, --))
181- >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
182- >from : Symbol(IteratorConstructor.from, Decl(lib.esnext .iterator.d.ts, --, --))
180+ >Iterator.from : Symbol(IteratorConstructor.from, Decl(lib.es2025 .iterator.d.ts, --, --))
181+ >Iterator : Symbol(Iterator, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
182+ >from : Symbol(IteratorConstructor.from, Decl(lib.es2025 .iterator.d.ts, --, --))
183183>g1 : Symbol(g1, Decl(builtinIterator.ts, 68, 13))
184184
185185declare const iter2: IteratorObject<string>;
186186>iter2 : Symbol(iter2, Decl(builtinIterator.ts, 71, 13))
187- >IteratorObject : Symbol(IteratorObject, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.esnext.disposable.d.ts, --, --), Decl(lib.esnext .iterator.d.ts, --, --))
187+ >IteratorObject : Symbol(IteratorObject, Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.esnext.disposable.d.ts, --, --), Decl(lib.es2025 .iterator.d.ts, --, --))
188188
189189const iter3 = iter2.flatMap(() => g1);
190190>iter3 : Symbol(iter3, Decl(builtinIterator.ts, 72, 5))
191- >iter2.flatMap : Symbol(IteratorObject.flatMap, Decl(lib.esnext .iterator.d.ts, --, --))
191+ >iter2.flatMap : Symbol(IteratorObject.flatMap, Decl(lib.es2025 .iterator.d.ts, --, --))
192192>iter2 : Symbol(iter2, Decl(builtinIterator.ts, 71, 13))
193- >flatMap : Symbol(IteratorObject.flatMap, Decl(lib.esnext .iterator.d.ts, --, --))
193+ >flatMap : Symbol(IteratorObject.flatMap, Decl(lib.es2025 .iterator.d.ts, --, --))
194194>g1 : Symbol(g1, Decl(builtinIterator.ts, 68, 13))
195195
0 commit comments