mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #950] [MERGED] fix: add tests verifying strings thrown in Server Components are not swallowed #978
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#978
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/950
Author: @Divkix
Created: 4/29/2026
Status: ✅ Merged
Merged: 4/29/2026
Merged by: @james-elicx
Base:
main← Head:fix/810-string-error-handling📝 Commits (2)
63f4441fix: add tests verifying strings thrown in Server Components are not swallowed (#810)295a490fix: address review feedback on string error handling tests (#950)📊 Changes
3 files changed (+56 additions, -2 deletions)
View changed files
📝
tests/app-router.test.ts(+33 -2)➕
tests/fixtures/app-basic/app/throw-string-test/error.tsx(+19 -0)➕
tests/fixtures/app-basic/app/throw-string-test/page.tsx(+4 -0)📄 Description
Fixes #810
Summary
rscOnErroralready correctly handles strings thrown in Server Components — no early-return swallow bug exists (unlike the Next.js bug fixed in vercel/next.js@b9ca95c62)throw-string-test) that throws a string in a Server Component with an error boundaryrscOnErrorreturns a valid digest hash for string throws in productiontypeof thrownValue === 'string'early-return pathTest plan
rscOnErrorprocesses string throws through normal error path (produces digest in production)Upstream:
github.com/vercel/next.js@b9ca95c62d🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.