-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[iOS] Fixes Reject error kind in Fabric #41955
[iOS] Fixes Reject error kind in Fabric #41955
Conversation
Base commit: aa2d613 |
This change exposed the original error instead of the one created from It seems the cc @sammy-SC for more details on this. |
2d39b90
to
005a88d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @zhongwuzw, thanks for the effort.
I think your changes mixes a little the semantic of the Error and lose some information from the ObjectiveC dictionary.
I suggested an approach that mixes what was happening before your changes with your suggestions.
You have the valid point of creating the Error
, but I think it's better if we preserve the cause
of the Error
.
What do you think?
.../react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm
Outdated
Show resolved
Hide resolved
@cipolleschi Please review again. |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
.../react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm
Outdated
Show resolved
Hide resolved
.../react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm
Outdated
Show resolved
Hide resolved
.../react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm
Outdated
Show resolved
Hide resolved
@javache @cipolleschi Please review again. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks good to me. There is only a small nit.
.../react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm
Outdated
Show resolved
Hide resolved
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cipolleschi merged this pull request in 9525074. |
Summary: Fixes facebook#41950 . bypass-github-export-checks ## Changelog: [IOS] [FIXED] - Fixes Reject error kind in Fabric Pull Request resolved: facebook#41955 Test Plan: reject returns `Error`. Reviewed By: javache Differential Revision: D52622682 Pulled By: cipolleschi fbshipit-source-id: 726e68d968d03505748191263b7e6b75a068c130
Summary:
Fixes #41950 .
Changelog:
[IOS] [FIXED] - Fixes Reject error kind in Fabric
Test Plan:
reject returns
Error
.