Repository navigation
Add regression test for -[RCTBridgeProxy object] - #60533
Open
christophpurrer wants to merge 1 commit into
Open
christophpurrer wants to merge 1 commit into
christophpurrer wants to merge 1 commit into
Conversation
|
@christophpurrer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D134530678. |
Visual regressionNo visual differences at android: no capture |
Summary: ## Summary: Adds an XCTest that sends `-object` to a real `RCTBridgeProxy` and asserts that it does not throw and that it returns the proxy itself. `RCTBridgeProxy` is an `NSProxy`, so without this method the message falls through to `doesNotRecognizeSelector:` and the legacy view manager interop layer crashes. The test is a new `RCTBridgeProxyTests` file. It is picked up by the existing `MountingTestsApple` target, which already links `RCTBridgeProxy`, so no BUCK change is needed. `-object` is not in `RCTBridgeProxy.h`, so the test declares it in a test-local category. This is a test-only change. The XCTest assertion block suppresses clang-tidy `misc-throw-by-value-catch-by-reference`, which fires inside the `XCTAssertEqual` macro expansion. The sibling `RCTLegacyViewManagerInteropComponentDescriptorTests.mm` suppresses the same check the same way. Changelog: [Internal] Signed-off-by: Racer Engineer <noreply+893464919433493@fb.com> Differential Revision: D134530678
christophpurrer
force-pushed
the
export-D134530678
branch
from
December 4, 2026 16:50
eba0030 to
89d47ab
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Summary:
Adds an XCTest that sends
-objectto a realRCTBridgeProxyand asserts that it does not throw and that it returns the proxy itself.RCTBridgeProxyis anNSProxy, so without this method the message falls through todoesNotRecognizeSelector:and the legacy view manager interop layer crashes. The test is a newRCTBridgeProxyTestsfile. It is picked up by the existingMountingTestsAppletarget, which already linksRCTBridgeProxy, so no BUCK change is needed.-objectis not inRCTBridgeProxy.h, so the test declares it in a test-local category. This is a test-only change.The XCTest assertion block suppresses clang-tidy
misc-throw-by-value-catch-by-reference, which fires inside theXCTAssertEqualmacro expansion. The siblingRCTLegacyViewManagerInteropComponentDescriptorTests.mmsuppresses the same check the same way.Changelog: [Internal]
Signed-off-by: Racer Engineer noreply+893464919433493@fb.com
Differential Revision: D134530678