When building with bun --bun, Next.js logs a spurious error about usePathname outside Suspense for routes with fallback params, even though the component is inside Suspense. Root cause is an unhandled promise rejection in the aborted branch of makeHangingPromiseWithError, which Bun does not filter because AsyncLocalStorage context is missing in unhandledRejection listeners.
Origin Analysis
During client prerender, after the render signal is aborted, React re-invokes the component to build the component stack for error reporting. In makeHangingPromiseWithError, the signal.aborted branch returns Promise.reject(error) without attaching a catch handler. Node's unhandledRejection filter uses workUnitAsyncStorage.getStore() to detect aborted render signals and suppresses the rejection, but Bun does not run unhandledRejection listeners within the promise's async context, causing getStore() to return undefined and the rejection to be logged as an error.
1. Clone repro: https://github.com/bigfree/next-bun-unhandled-rejection-repro
2. Run bun install
3. Run bun run build:bun
4. Observe spurious error for /items/[id] despite Suspense boundary
5. Compare with bun run build:node which is clean