mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
b7e2157922
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.