Skip to content

Remove RCTInstance runtime diagnostic flags getter/setter - #58384

Closed
javache wants to merge 1 commit into
react:mainfrom
javache:export-D119072229
Closed

javache wants to merge 1 commit into
react:mainfrom
javache:export-D119072229

Conversation

@javache

@javache javache commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary:
Removes the RCTInstanceRuntimeDiagnosticFlags getter and RCTInstanceSetRuntimeDiagnosticFlags setter (and the backing static) from the bridgeless RCTInstance runtime, on both the iOS and macOS platform copies.

The setter had no callers anywhere, so the getter always returned an empty string and the RN$DiagnosticFlags JS global was never defined. The ReactInstance::JSRuntimeFlags::runtimeDiagnosticFlags field already defaults to an empty string, so the initializeRuntime call site now relies on that default with no change in runtime behavior.

Changelog:
[iOS][Removed] - Remove RCTInstanceSetRuntimeDiagnosticFlags and RCTInstanceRuntimeDiagnosticFlags

Differential Revision: D119072229

Summary:
Removes the `RCTInstanceRuntimeDiagnosticFlags` getter and `RCTInstanceSetRuntimeDiagnosticFlags` setter (and the backing static) from the bridgeless `RCTInstance` runtime, on both the iOS and macOS platform copies.

The setter had no callers anywhere, so the getter always returned an empty string and the `RN$DiagnosticFlags` JS global was never defined. The `ReactInstance::JSRuntimeFlags::runtimeDiagnosticFlags` field already defaults to an empty string, so the `initializeRuntime` call site now relies on that default with no change in runtime behavior.

Changelog:
[iOS][Removed] - Remove `RCTInstanceSetRuntimeDiagnosticFlags` and `RCTInstanceRuntimeDiagnosticFlags`

Differential Revision: D119072229
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 7, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels Sep 7, 2026
@meta-codesync

meta-codesync Bot commented Sep 7, 2026

Copy link
Copy Markdown

@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D119072229.

@meta-codesync meta-codesync Bot closed this in 935f733 Sep 9, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Sep 9, 2026
@meta-codesync

meta-codesync Bot commented Sep 9, 2026

Copy link
Copy Markdown

This pull request has been merged in 935f733.

@javache
javache deleted the export-D119072229 branch September 9, 2026 17:29
shashikant-panchal pushed a commit to shashikant-panchal/react-native that referenced this pull request Sep 10, 2026
Summary:
Pull Request resolved: react#58384

Removes the `RCTInstanceRuntimeDiagnosticFlags` getter and `RCTInstanceSetRuntimeDiagnosticFlags` setter (and the backing static) from the bridgeless `RCTInstance` runtime, on both the iOS and macOS platform copies.

The setter had no callers anywhere, so the getter always returned an empty string and the `RN$DiagnosticFlags` JS global was never defined. The `ReactInstance::JSRuntimeFlags::runtimeDiagnosticFlags` field already defaults to an empty string, so the `initializeRuntime` call site now relies on that default with no change in runtime behavior.

Changelog:
[iOS][Removed] - Remove `RCTInstanceSetRuntimeDiagnosticFlags` and `RCTInstanceRuntimeDiagnosticFlags`

Reviewed By: christophpurrer

Differential Revision: D119072229

fbshipit-source-id: c249705231efd4ffe1a9e768758665589a420aae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant