From 8e5125a4d160f5354935f75487df888eff137e93 Mon Sep 17 00:00:00 2001 From: Gorniaky Date: Sat, 17 Oct 2026 14:34:12 -0300 Subject: [PATCH] fix: ensure `mapFn` is awaited in `mappedFromAsync` for correct execution --- packages/util/src/@prototypes/array.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/util/src/@prototypes/array.ts b/packages/util/src/@prototypes/array.ts index 5f1703ed..0265d1d0 100644 --- a/packages/util/src/@prototypes/array.ts +++ b/packages/util/src/@prototypes/array.ts @@ -14,7 +14,7 @@ async function mappedFromAsync( ) { const array: U[] = []; for await (const element of await iterableOrArrayLike as AsyncGenerator>) { - array.push(mapFn(await element, array.length)); + array.push(await mapFn(await element, array.length)); } return array; }