Skip to content

Make StackTraceParser.h private in jserrorhandler - #58793

Open
coado wants to merge 1 commit into
react:mainfrom
coado:export-D122770464
Open

coado wants to merge 1 commit into
react:mainfrom
coado:export-D122770464

Conversation

@coado

@coado coado commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Summary:
StackTraceParser is an implementation detail of JsErrorHandler: it is only used by JsErrorHandler.cpp and its own unit test, and JsErrorHandler.h does not include it. Mark it as a private header instead of a for-frameworks one.

  • Swap FrameworksGuard.h for PrivateGuard.h in StackTraceParser.h.
  • Include JsErrorHandler.h via its namespaced path so the header resolves when it is not exported alongside it.
  • Stop shipping StackTraceParser.h as a header for prebuilt React-jserrorhandler pods.

Changelog: [Internal]

Differential Revision: D122770464

Summary:
`StackTraceParser` is an implementation detail of `JsErrorHandler`: it is only used by `JsErrorHandler.cpp` and its own unit test, and `JsErrorHandler.h` does not include it. Mark it as a private header instead of a for-frameworks one.

- Swap `FrameworksGuard.h` for `PrivateGuard.h` in `StackTraceParser.h`.
- Include `JsErrorHandler.h` via its namespaced path so the header resolves when it is not exported alongside it.
- Stop shipping `StackTraceParser.h` as a header for prebuilt `React-jserrorhandler` pods.

Changelog: [Internal]

Differential Revision: D122770464
@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 Oct 1, 2026
@facebook-github-tools facebook-github-tools Bot added p: Software Mansion Partner: Software Mansion Partner p: Facebook Partner: Facebook labels Oct 1, 2026
@meta-codesync

meta-codesync Bot commented Oct 1, 2026

Copy link
Copy Markdown

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

This branch has not been deployed

No deployments
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. meta-exported p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant