Skip to content

[Flight] Handle errors during JSON stringify of console values#31391

Merged
sebmarkbage merged 1 commit into
facebook:mainfrom
sebmarkbage:jsonerrors
Oct 31, 2024
Merged

[Flight] Handle errors during JSON stringify of console values#31391
sebmarkbage merged 1 commit into
facebook:mainfrom
sebmarkbage:jsonerrors

Conversation

@sebmarkbage
Copy link
Copy Markdown
Contributor

When we serialize debug info we should never error even though we don't currently support everything being serialized. Since it's non-essential dev information.

We already handle errors in the replacer but not when errors happen in the JSON algorithm itself - such as cyclic errors.

We should ideally support cyclic objects but regardless we should gracefully handle the errors.

@sebmarkbage sebmarkbage requested review from eps1lon and gnoff October 31, 2024 00:39
@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compiler-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 31, 2024 1:12am

@react-sizebot
Copy link
Copy Markdown

react-sizebot commented Oct 31, 2024

The size diff is too large to display in a single comment. The GitHub action for this pull request contains an artifact called 'sizebot-message.md' with the full message.

Generated by 🚫 dangerJS against 1d29a99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants