@@ -33,7 +33,7 @@ function * genPromises (n) {
3333>i : Symbol(i, Decl(arrayFromAsync.ts, 7, 12))
3434 }
3535}
36-
36+
3737const arrLike = {
3838>arrLike : Symbol(arrLike, Decl(arrayFromAsync.ts, 12, 5))
3939
@@ -185,3 +185,13 @@ const badArray = await Array.fromAsync(badIterable);
185185>fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
186186>badIterable : Symbol(badIterable, Decl(arrayFromAsync.ts, 39, 5))
187187
188+ const withIndexResult = await Array.fromAsync(["a", "b"], (str, index) => ({ index, str }));
189+ >withIndexResult : Symbol(withIndexResult, Decl(arrayFromAsync.ts, 43, 5))
190+ >Array.fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
191+ >Array : Symbol(Array, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --) ... and 4 more)
192+ >fromAsync : Symbol(ArrayConstructor.fromAsync, Decl(lib.esnext.array.d.ts, --, --), Decl(lib.esnext.array.d.ts, --, --))
193+ >str : Symbol(str, Decl(arrayFromAsync.ts, 43, 59))
194+ >index : Symbol(index, Decl(arrayFromAsync.ts, 43, 63))
195+ >index : Symbol(index, Decl(arrayFromAsync.ts, 43, 76))
196+ >str : Symbol(str, Decl(arrayFromAsync.ts, 43, 83))
197+
0 commit comments