Skip to content

Commit d75704d

Browse files
committed
[eslint] Disallow use within try/catch blocks (#34040)
Follow up to #34032. The linter now ensures that `use` cannot be used within try/catch. DiffTrain build for [820af20](820af20)
1 parent fad31e9 commit d75704d

26 files changed

+119
-89
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.2.0-native-fb-9be531cd-20250729
1+
19.2.0-native-fb-820af209-20250729

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<61185d542c129be47371da0352cb6dba>>
10+
* @generated SignedSource<<f8b21cc24ef053773a5ef2c759dae2f0>>
1111
*/
1212

1313
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
404404
exports.useFormStatus = function () {
405405
return resolveDispatcher().useHostTransitionStatus();
406406
};
407-
exports.version = "19.2.0-native-fb-9be531cd-20250729";
407+
exports.version = "19.2.0-native-fb-820af209-20250729";
408408
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<84636765ccb52c0b590bfd7a8025b0dd>>
10+
* @generated SignedSource<<46937cfe16e9375fcbab25ac47ade8fa>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.2.0-native-fb-9be531cd-20250729";
206+
exports.version = "19.2.0-native-fb-820af209-20250729";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<84636765ccb52c0b590bfd7a8025b0dd>>
10+
* @generated SignedSource<<46937cfe16e9375fcbab25ac47ade8fa>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.2.0-native-fb-9be531cd-20250729";
206+
exports.version = "19.2.0-native-fb-820af209-20250729";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<437184afd2011127714d49b733bba695>>
10+
* @generated SignedSource<<91d9be576ed43f59bff4948bc07117cd>>
1111
*/
1212

1313
/*
@@ -29025,11 +29025,11 @@ __DEV__ &&
2902529025
};
2902629026
(function () {
2902729027
var isomorphicReactPackageVersion = React.version;
29028-
if ("19.2.0-native-fb-9be531cd-20250729" !== isomorphicReactPackageVersion)
29028+
if ("19.2.0-native-fb-820af209-20250729" !== isomorphicReactPackageVersion)
2902929029
throw Error(
2903029030
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2903129031
(isomorphicReactPackageVersion +
29032-
"\n - react-dom: 19.2.0-native-fb-9be531cd-20250729\nLearn more: https://react.dev/warnings/version-mismatch")
29032+
"\n - react-dom: 19.2.0-native-fb-820af209-20250729\nLearn more: https://react.dev/warnings/version-mismatch")
2903329033
);
2903429034
})();
2903529035
("function" === typeof Map &&
@@ -29066,10 +29066,10 @@ __DEV__ &&
2906629066
!(function () {
2906729067
var internals = {
2906829068
bundleType: 1,
29069-
version: "19.2.0-native-fb-9be531cd-20250729",
29069+
version: "19.2.0-native-fb-820af209-20250729",
2907029070
rendererPackageName: "react-dom",
2907129071
currentDispatcherRef: ReactSharedInternals,
29072-
reconcilerVersion: "19.2.0-native-fb-9be531cd-20250729"
29072+
reconcilerVersion: "19.2.0-native-fb-820af209-20250729"
2907329073
};
2907429074
internals.overrideHookState = overrideHookState;
2907529075
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -29207,5 +29207,5 @@ __DEV__ &&
2920729207
listenToAllSupportedEvents(container);
2920829208
return new ReactDOMHydrationRoot(initialChildren);
2920929209
};
29210-
exports.version = "19.2.0-native-fb-9be531cd-20250729";
29210+
exports.version = "19.2.0-native-fb-820af209-20250729";
2921129211
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<c7743635ed7df7643b55be3df1aebea6>>
10+
* @generated SignedSource<<e366c3e46a53c1662f5bdc9a8c87d96e>>
1111
*/
1212

1313
/*
@@ -17128,14 +17128,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1712817128
};
1712917129
var isomorphicReactPackageVersion$jscomp$inline_2002 = React.version;
1713017130
if (
17131-
"19.2.0-native-fb-9be531cd-20250729" !==
17131+
"19.2.0-native-fb-820af209-20250729" !==
1713217132
isomorphicReactPackageVersion$jscomp$inline_2002
1713317133
)
1713417134
throw Error(
1713517135
formatProdErrorMessage(
1713617136
527,
1713717137
isomorphicReactPackageVersion$jscomp$inline_2002,
17138-
"19.2.0-native-fb-9be531cd-20250729"
17138+
"19.2.0-native-fb-820af209-20250729"
1713917139
)
1714017140
);
1714117141
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17157,10 +17157,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1715717157
};
1715817158
var internals$jscomp$inline_2521 = {
1715917159
bundleType: 0,
17160-
version: "19.2.0-native-fb-9be531cd-20250729",
17160+
version: "19.2.0-native-fb-820af209-20250729",
1716117161
rendererPackageName: "react-dom",
1716217162
currentDispatcherRef: ReactSharedInternals,
17163-
reconcilerVersion: "19.2.0-native-fb-9be531cd-20250729"
17163+
reconcilerVersion: "19.2.0-native-fb-820af209-20250729"
1716417164
};
1716517165
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1716617166
var hook$jscomp$inline_2522 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17258,4 +17258,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1725817258
listenToAllSupportedEvents(container);
1725917259
return new ReactDOMHydrationRoot(initialChildren);
1726017260
};
17261-
exports.version = "19.2.0-native-fb-9be531cd-20250729";
17261+
exports.version = "19.2.0-native-fb-820af209-20250729";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<761b086f8673833ba8b00d132b06292e>>
10+
* @generated SignedSource<<5980f6f5028e7c9045cdca30e9cafb43>>
1111
*/
1212

1313
/*
@@ -19086,14 +19086,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1908619086
};
1908719087
var isomorphicReactPackageVersion$jscomp$inline_2242 = React.version;
1908819088
if (
19089-
"19.2.0-native-fb-9be531cd-20250729" !==
19089+
"19.2.0-native-fb-820af209-20250729" !==
1909019090
isomorphicReactPackageVersion$jscomp$inline_2242
1909119091
)
1909219092
throw Error(
1909319093
formatProdErrorMessage(
1909419094
527,
1909519095
isomorphicReactPackageVersion$jscomp$inline_2242,
19096-
"19.2.0-native-fb-9be531cd-20250729"
19096+
"19.2.0-native-fb-820af209-20250729"
1909719097
)
1909819098
);
1909919099
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19115,10 +19115,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1911519115
};
1911619116
var internals$jscomp$inline_2249 = {
1911719117
bundleType: 0,
19118-
version: "19.2.0-native-fb-9be531cd-20250729",
19118+
version: "19.2.0-native-fb-820af209-20250729",
1911919119
rendererPackageName: "react-dom",
1912019120
currentDispatcherRef: ReactSharedInternals,
19121-
reconcilerVersion: "19.2.0-native-fb-9be531cd-20250729",
19121+
reconcilerVersion: "19.2.0-native-fb-820af209-20250729",
1912219122
getLaneLabelMap: function () {
1912319123
for (
1912419124
var map = new Map(), lane = 1, index$319 = 0;
@@ -19231,4 +19231,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1923119231
listenToAllSupportedEvents(container);
1923219232
return new ReactDOMHydrationRoot(initialChildren);
1923319233
};
19234-
exports.version = "19.2.0-native-fb-9be531cd-20250729";
19234+
exports.version = "19.2.0-native-fb-820af209-20250729";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<5431658016686f769daaae99fc9d0523>>
10+
* @generated SignedSource<<bbdf930a69a50b79d8fa605ff1c68bc4>>
1111
*/
1212

1313
/*
@@ -29081,11 +29081,11 @@ __DEV__ &&
2908129081
};
2908229082
(function () {
2908329083
var isomorphicReactPackageVersion = React.version;
29084-
if ("19.2.0-native-fb-9be531cd-20250729" !== isomorphicReactPackageVersion)
29084+
if ("19.2.0-native-fb-820af209-20250729" !== isomorphicReactPackageVersion)
2908529085
throw Error(
2908629086
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2908729087
(isomorphicReactPackageVersion +
29088-
"\n - react-dom: 19.2.0-native-fb-9be531cd-20250729\nLearn more: https://react.dev/warnings/version-mismatch")
29088+
"\n - react-dom: 19.2.0-native-fb-820af209-20250729\nLearn more: https://react.dev/warnings/version-mismatch")
2908929089
);
2909029090
})();
2909129091
("function" === typeof Map &&
@@ -29122,10 +29122,10 @@ __DEV__ &&
2912229122
!(function () {
2912329123
var internals = {
2912429124
bundleType: 1,
29125-
version: "19.2.0-native-fb-9be531cd-20250729",
29125+
version: "19.2.0-native-fb-820af209-20250729",
2912629126
rendererPackageName: "react-dom",
2912729127
currentDispatcherRef: ReactSharedInternals,
29128-
reconcilerVersion: "19.2.0-native-fb-9be531cd-20250729"
29128+
reconcilerVersion: "19.2.0-native-fb-820af209-20250729"
2912929129
};
2913029130
internals.overrideHookState = overrideHookState;
2913129131
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -29579,7 +29579,7 @@ __DEV__ &&
2957929579
exports.useFormStatus = function () {
2958029580
return resolveDispatcher().useHostTransitionStatus();
2958129581
};
29582-
exports.version = "19.2.0-native-fb-9be531cd-20250729";
29582+
exports.version = "19.2.0-native-fb-820af209-20250729";
2958329583
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2958429584
"function" ===
2958529585
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<7a32532458cd1f332d97f03b39d8d53d>>
10+
* @generated SignedSource<<8057e42a1ec2c22c5081229d0e39d384>>
1111
*/
1212

1313
/*
@@ -17139,14 +17139,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1713917139
};
1714017140
var isomorphicReactPackageVersion$jscomp$inline_2003 = React.version;
1714117141
if (
17142-
"19.2.0-native-fb-9be531cd-20250729" !==
17142+
"19.2.0-native-fb-820af209-20250729" !==
1714317143
isomorphicReactPackageVersion$jscomp$inline_2003
1714417144
)
1714517145
throw Error(
1714617146
formatProdErrorMessage(
1714717147
527,
1714817148
isomorphicReactPackageVersion$jscomp$inline_2003,
17149-
"19.2.0-native-fb-9be531cd-20250729"
17149+
"19.2.0-native-fb-820af209-20250729"
1715017150
)
1715117151
);
1715217152
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17168,10 +17168,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1716817168
};
1716917169
var internals$jscomp$inline_2524 = {
1717017170
bundleType: 0,
17171-
version: "19.2.0-native-fb-9be531cd-20250729",
17171+
version: "19.2.0-native-fb-820af209-20250729",
1717217172
rendererPackageName: "react-dom",
1717317173
currentDispatcherRef: ReactSharedInternals,
17174-
reconcilerVersion: "19.2.0-native-fb-9be531cd-20250729"
17174+
reconcilerVersion: "19.2.0-native-fb-820af209-20250729"
1717517175
};
1717617176
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1717717177
var hook$jscomp$inline_2525 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17422,4 +17422,4 @@ exports.useFormState = function (action, initialState, permalink) {
1742217422
exports.useFormStatus = function () {
1742317423
return ReactSharedInternals.H.useHostTransitionStatus();
1742417424
};
17425-
exports.version = "19.2.0-native-fb-9be531cd-20250729";
17425+
exports.version = "19.2.0-native-fb-820af209-20250729";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<9d678eede77593c91104e77824ff2c35>>
10+
* @generated SignedSource<<d0242a2d8574d8b55d6bc2b60d5093b3>>
1111
*/
1212

1313
/*
@@ -19101,14 +19101,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1910119101
};
1910219102
var isomorphicReactPackageVersion$jscomp$inline_2243 = React.version;
1910319103
if (
19104-
"19.2.0-native-fb-9be531cd-20250729" !==
19104+
"19.2.0-native-fb-820af209-20250729" !==
1910519105
isomorphicReactPackageVersion$jscomp$inline_2243
1910619106
)
1910719107
throw Error(
1910819108
formatProdErrorMessage(
1910919109
527,
1911019110
isomorphicReactPackageVersion$jscomp$inline_2243,
19111-
"19.2.0-native-fb-9be531cd-20250729"
19111+
"19.2.0-native-fb-820af209-20250729"
1911219112
)
1911319113
);
1911419114
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19130,10 +19130,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1913019130
};
1913119131
var internals$jscomp$inline_2250 = {
1913219132
bundleType: 0,
19133-
version: "19.2.0-native-fb-9be531cd-20250729",
19133+
version: "19.2.0-native-fb-820af209-20250729",
1913419134
rendererPackageName: "react-dom",
1913519135
currentDispatcherRef: ReactSharedInternals,
19136-
reconcilerVersion: "19.2.0-native-fb-9be531cd-20250729",
19136+
reconcilerVersion: "19.2.0-native-fb-820af209-20250729",
1913719137
getLaneLabelMap: function () {
1913819138
for (
1913919139
var map = new Map(), lane = 1, index$319 = 0;
@@ -19399,7 +19399,7 @@ exports.useFormState = function (action, initialState, permalink) {
1939919399
exports.useFormStatus = function () {
1940019400
return ReactSharedInternals.H.useHostTransitionStatus();
1940119401
};
19402-
exports.version = "19.2.0-native-fb-9be531cd-20250729";
19402+
exports.version = "19.2.0-native-fb-820af209-20250729";
1940319403
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1940419404
"function" ===
1940519405
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)