Reproduce nextjs-turbopack-nested-promises from its authentic engineer request.
Reproduce nextjs-turbopack-nested-promises from its authentic engineer request.: a task in nextjs-selfbench (Harbor dataset). Turbopack's static analyzer currently models an async function that returns another promise as though its result can retain multiple promise layers. That cannot occur in…
The task
Turbopack's static analyzer currently models an async function that returns another promise as though its result can retain multiple promise layers. That cannot occur in JavaScript or TypeScript: promise resolution adopts the returned promise, so a conceptual `Promise<Promise<T>>` becomes `Promise<T>`.
Part of dari-ai/nextjs-selfbench.