Skip to content

Move ErrorUtils from cxxreact to jserrorhandler (#57236)#57236

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

Move ErrorUtils from cxxreact to jserrorhandler (#57236)#57236
javache wants to merge 1 commit into
react:mainfrom
javache:export-D108786498

Conversation

@javache

@javache javache commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary:

Move handleJSError from cxxreact/ErrorUtils.h (header-inline) to jserrorhandler/ErrorUtils.{h,cpp} (declared + linked). Inverts the cyclic dep so jserrorhandler becomes a standalone leaf and cxxreact:bridge can be narrowed out of more consumers in follow-ups.

The old <cxxreact/ErrorUtils.h> include path continues to work via a deprecated #warning forwarder header that includes the new location. cxxreact:bridge now depends on jserrorhandler:jserrorhandler so existing consumers of the deprecated path still link cleanly. jserrorhandler/BUCK drops its cxxreact:bridge dep (and the matching React-cxxreact podspec entry).

Changelog:
[Internal]

Reviewed By: christophpurrer

Differential Revision: D108786498

@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 Jun 16, 2026
@meta-codesync

meta-codesync Bot commented Jun 16, 2026

Copy link
Copy Markdown

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

Summary:

Move `handleJSError` from `cxxreact/ErrorUtils.h` (header-inline) to `jserrorhandler/ErrorUtils.{h,cpp}` (declared + linked). Inverts the cyclic dep so `jserrorhandler` becomes a standalone leaf and `cxxreact:bridge` can be narrowed out of more consumers in follow-ups.

The old `<cxxreact/ErrorUtils.h>` include path continues to work via a deprecated `#warning` forwarder header that includes the new location. `cxxreact:bridge` now depends on `jserrorhandler:jserrorhandler` so existing consumers of the deprecated path still link cleanly. `jserrorhandler/BUCK` drops its `cxxreact:bridge` dep (and the matching `React-cxxreact` podspec entry).

Changelog:
[Internal]

Reviewed By: christophpurrer

Differential Revision: D108786498
@meta-codesync meta-codesync Bot changed the title Move ErrorUtils from cxxreact to jserrorhandler Move ErrorUtils from cxxreact to jserrorhandler (#57236) Jun 16, 2026
@javache javache force-pushed the export-D108786498 branch from 8967bc5 to db6f914 Compare June 16, 2026 21:49
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 Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant