-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Upstream] Remove assumptions on super's description #36374
Conversation
Base commit: 96659f8 |
Can you provide more details on the crash you've been seeing? Agree that you usually don't need this in production, but when they do show up in exception messages or log messages from internal bug reports we've gotten a lot of value out of them. |
The crash was macOS specific (the format of description differs slightly from iOS, so one of them caused a crash). I'll dig up the into + the other fix we had. |
@javache The other half of the "fix" we made is here: microsoft#1088 These If you still like this change, I can roll that refactor into this PR as well. Or I can make a change with just the refactor,but not limiting |
Yes, the replacing of super's description is purely cosmetic, so the changes in https://github.com/microsoft/react-native-macos/pull/1088/files would make sense to pull in upstream. My preference would be to not add the |
We actually just use |
@javache Looking into it, I think you're right that I updated this PR to upstream the refactor, and not the DEBUG ifdefs. |
@javache has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: This is a change upstreamed from our fork, React Native macOS: microsoft#1088 Original description: >We hit some crashes where replacing the chars in the string in the description was happening at an invalid range. That caused investigation into what these description methods are doing. We shouldn't have code assuming super's description will return in a certain format. Instead, just append any additional info we want to add to the end of the description. ## Changelog [IOS] [CHANGED] -Remove assumptions on super's description Pull Request resolved: facebook#36374 Test Plan: CI should pass Reviewed By: cipolleschi Differential Revision: D43906367 Pulled By: javache fbshipit-source-id: f83a67c5890ad1f8a73bc644be1f0f8b22b1a371
Summary
This is a change upstreamed from our fork, React Native macOS: microsoft#1088
Original description:
Changelog
[IOS] [CHANGED] -Remove assumptions on super's description
Test Plan
CI should pass