Skip to content

Commit 5342803

Browse files
coadometa-codesync[bot]
authored andcommitted
Classify the deprecated cxxreact/ErrorUtils.h shim as for-frameworks (#59196)
Summary: Pull Request resolved: #59196 `cxxreact/ErrorUtils.h` is a deprecated shim that forwards to `<jserrorhandler/ErrorUtils.h>`, which declares `handleJSError` and is already classified "for frameworks". Add the `FrameworksGuard.h` include so the shim carries the same tier as the header it forwards to. Changelog: [Internal] ___ landed-with-radar-review Differential Revision: D126072196 fbshipit-source-id: dd0bf90ebc3bf2b3ebdf78ca3b39f3ac0bd75272
1 parent adc45a8 commit 5342803

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/react-native/ReactAndroid/build.gradle.kts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ val preparePrefab by
232232
Pair("../ReactCommon/callinvoker/", ""),
233233
Pair("../ReactCommon/callinvoker/React/", "React/"),
234234
Pair("../ReactCommon/cxxreact/", "cxxreact/"),
235-
// Exported because the public cxxreact/ErrorUtils.h includes it
235+
// Exported because the deprecated cxxreact/ErrorUtils.h shim includes it
236236
Pair("../ReactCommon/jserrorhandler/", "jserrorhandler/"),
237237
Pair("../ReactCommon/react/bridging/", "react/bridging/"),
238238
Pair("../ReactCommon/react/bridging/React/", "React/"),

‎packages/react-native/ReactCommon/cxxreact/ErrorUtils.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#pragma once
99

10+
#include <react/cxxstableapi/FrameworksGuard.h>
11+
1012
#warning Deprecated: use <jserrorhandler/ErrorUtils.h> instead.
1113

1214
#include <jserrorhandler/ErrorUtils.h>

0 commit comments

Comments
 (0)