[compiler] Fix bug with reassigning function param in destructuring (#33624)

Closes #33577, a bug with ExtractScopeDeclarationsFromDestructuring and
codegen when a function param is reassigned.

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33624).
* #33643
* #33642
* #33640
* #33625
* __->__ #33624

DiffTrain build for [9894c488e0](https://github.com/facebook/react/commit/9894c488e0d9a4d9759d80ba8666d4d094b894e9)
This commit is contained in:
josephsavona
2025-06-25 11:25:10 -07:00
parent e2d000654a
commit 74404dc86a
26 changed files with 117 additions and 117 deletions
+1 -1
View File
@@ -1 +1 @@
19.2.0-native-fb-123ff13b-20250625
19.2.0-native-fb-9894c488-20250625
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c3a3a6310c465f22276962de2f0f2319>>
* @generated SignedSource<<7aa7f8cead56b79b2800cf27ea3aee1f>>
*/
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2b56cd6a7ad78f2b3d764aab65963425>>
* @generated SignedSource<<86f6e52b601c9212c0a2df00969cfc08>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2b56cd6a7ad78f2b3d764aab65963425>>
* @generated SignedSource<<86f6e52b601c9212c0a2df00969cfc08>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a3b8c05cfd93cba258be674731c9d6f5>>
* @generated SignedSource<<8e074ca71cd180d0d1552d9f50c8a2ee>>
*/
/*
@@ -28651,11 +28651,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-123ff13b-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.2.0-native-fb-123ff13b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -28692,10 +28692,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625"
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -28833,5 +28833,5 @@ __DEV__ &&
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<46e83bd3e42ab9040d6bb857d6199d99>>
* @generated SignedSource<<214e9b286178f179f61d19d4e2e33862>>
*/
/*
@@ -17121,14 +17121,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2023 = React.version;
if (
"19.2.0-native-fb-123ff13b-20250625" !==
"19.2.0-native-fb-9894c488-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2023
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2023,
"19.2.0-native-fb-123ff13b-20250625"
"19.2.0-native-fb-9894c488-20250625"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17150,10 +17150,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2542 = {
bundleType: 0,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625"
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2543 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17251,4 +17251,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<9e77781e22bbfffb66b15e57cfb2de13>>
* @generated SignedSource<<eb8cdf2cbf395b9ef82489ee3b5a7d46>>
*/
/*
@@ -19053,14 +19053,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2261 = React.version;
if (
"19.2.0-native-fb-123ff13b-20250625" !==
"19.2.0-native-fb-9894c488-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2261
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2261,
"19.2.0-native-fb-123ff13b-20250625"
"19.2.0-native-fb-9894c488-20250625"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19082,10 +19082,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2268 = {
bundleType: 0,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625",
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$331 = 0;
@@ -19198,4 +19198,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2c61d4febbdcc5334e51372d20b00ce3>>
* @generated SignedSource<<727ba832f1cbee1e1dbc93935792a08d>>
*/
/*
@@ -28707,11 +28707,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-123ff13b-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.2.0-native-fb-123ff13b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -28748,10 +28748,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625"
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -29205,7 +29205,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<d5ba384836e731c4be57f5168bcff553>>
* @generated SignedSource<<8ce6156a4bd7818ab4f97d690dcd9364>>
*/
/*
@@ -17132,14 +17132,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2024 = React.version;
if (
"19.2.0-native-fb-123ff13b-20250625" !==
"19.2.0-native-fb-9894c488-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2024
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2024,
"19.2.0-native-fb-123ff13b-20250625"
"19.2.0-native-fb-9894c488-20250625"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17161,10 +17161,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2545 = {
bundleType: 0,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625"
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2546 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17415,4 +17415,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<614bb4ec9801ce31d283c1cc1605e3c0>>
* @generated SignedSource<<42e3666353f304e91e408588a8bf36fe>>
*/
/*
@@ -19068,14 +19068,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2262 = React.version;
if (
"19.2.0-native-fb-123ff13b-20250625" !==
"19.2.0-native-fb-9894c488-20250625" !==
isomorphicReactPackageVersion$jscomp$inline_2262
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2262,
"19.2.0-native-fb-123ff13b-20250625"
"19.2.0-native-fb-9894c488-20250625"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19097,10 +19097,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2269 = {
bundleType: 0,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625",
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$331 = 0;
@@ -19366,7 +19366,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<5bb0ee5eebe0be143ece7d9516211c05>>
* @generated SignedSource<<977bd60630ef783455ff0d3597f4e9f3>>
*/
"use strict";
@@ -15722,10 +15722,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625"
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15870,5 +15870,5 @@ __DEV__ &&
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<6fedf75fecabfd8dfd784e3f55657446>>
* @generated SignedSource<<37d9b1d514be2d9e30c7af36322d3f06>>
*/
"use strict";
@@ -9905,10 +9905,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1453 = {
bundleType: 0,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625"
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1454 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10044,4 +10044,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a19aaa8acad7ae7840cb046dc93bcb12>>
* @generated SignedSource<<61df7fc53cf658b3e2cf27d846ce99a9>>
*/
"use strict";
@@ -10525,10 +10525,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1260 = {
bundleType: 0,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625",
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$155 = 0;
@@ -10679,4 +10679,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<9085edf03d745ff16534dcfd53bf6617>>
* @generated SignedSource<<397abd7f961e3d3ad5ecc04d3c0ff8f0>>
*/
"use strict";
@@ -1413,7 +1413,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<e5596b97324c2395b0ddc01b89d005eb>>
* @generated SignedSource<<3781b019be8e22a0c6c4e9341a37d960>>
*/
"use strict";
@@ -589,4 +589,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<46da79099267acec86e8fadf7fa9f56c>>
* @generated SignedSource<<58d4c89c1f175149c6f0b1bce05e1e51>>
*/
"use strict";
@@ -593,7 +593,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-123ff13b-20250625";
exports.version = "19.2.0-native-fb-9894c488-20250625";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
123ff13b193cd361a61b99056dd08f2decd7f55d
9894c488e0d9a4d9759d80ba8666d4d094b894e9
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<a5d5273085394468e9591678c2b135eb>>
* @generated SignedSource<<e461f9bc0e6b68ee50217b242e895d8b>>
*/
"use strict";
@@ -18875,10 +18875,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625"
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<bd1c10832544fb452b0ce9f8681d1341>>
* @generated SignedSource<<275d04e8cb6a38259df8591dab325cdc>>
*/
"use strict";
@@ -11029,10 +11029,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1257 = {
bundleType: 0,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625"
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1257.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ebfa86a54695c58e04b4cf96360e3dc3>>
* @generated SignedSource<<72486951c02a0614d71045fcc174ddc6>>
*/
"use strict";
@@ -12932,10 +12932,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1490 = {
bundleType: 0,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625"
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1490.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b0b4da1fac3b14ec000d17b38b65cbd8>>
* @generated SignedSource<<2af74191a5d61899ec12f33509e31498>>
*/
"use strict";
@@ -19208,11 +19208,11 @@ __DEV__ &&
shouldSuspendImpl = newShouldSuspendImpl;
};
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-123ff13b-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.2.0-native-fb-123ff13b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -19238,10 +19238,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625"
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<4dd9f366afb7bee86190108c44d2fb54>>
* @generated SignedSource<<0eff702e6560c24b55ce8f9e1da6ddec>>
*/
"use strict";
@@ -11221,11 +11221,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-123ff13b-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.2.0-native-fb-123ff13b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11275,10 +11275,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1313 = {
bundleType: 0,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625"
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1313.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<76eac4a6a2639d1298c7f8a895c02283>>
* @generated SignedSource<<6259f22f235fd34d9bc12ef02f1b5149>>
*/
"use strict";
@@ -13113,11 +13113,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-123ff13b-20250625" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-9894c488-20250625" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.2.0-native-fb-123ff13b-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-9894c488-20250625\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -13167,10 +13167,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1546 = {
bundleType: 0,
version: "19.2.0-native-fb-123ff13b-20250625",
version: "19.2.0-native-fb-9894c488-20250625",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625"
reconcilerVersion: "19.2.0-native-fb-9894c488-20250625"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1546.rendererConfig = extraDevToolsConfig);
@@ -12,7 +12,7 @@
* @lightSyntaxTransform
* @preventMunge
* @oncall react_core
* @generated SignedSource<<8e98f9380eef35f26401f575917c3fd4>>
* @generated SignedSource<<ba4d512060ee38190195b8a839dbd9b0>>
*/
'use strict';
@@ -27077,9 +27077,6 @@ function printFunction(fn) {
if (fn.id !== null) {
definition += fn.id;
}
else {
definition += '<<anonymous>>';
}
if (fn.params.length !== 0) {
definition +=
'(' +
@@ -27098,8 +27095,10 @@ function printFunction(fn) {
else {
definition += '()';
}
definition += `: ${printPlace(fn.returns)}`;
output.push(definition);
if (definition.length !== 0) {
output.push(definition);
}
output.push(`: ${printType(fn.returnType)} @ ${printPlace(fn.returns)}`);
output.push(...fn.directives);
output.push(printHIR(fn.body));
return output.join('\n');
@@ -30924,6 +30923,7 @@ function lower$1(func, env, bindings = null, capturedRefs = new Map()) {
params,
fnType: bindings == null ? env.fnType : 'Other',
returnTypeAnnotation: null,
returnType: makeType(),
returns: createTemporaryPlace(env, (_b = func.node.loc) !== null && _b !== void 0 ? _b : GeneratedSource),
body: builder.build(),
context,
@@ -44547,7 +44547,7 @@ function codegenTerminal(cx, terminal) {
? codegenPlaceToExpression(cx, case_.test)
: null;
const block = codegenBlock(cx, case_.block);
return libExports$1.switchCase(test, block.body.length === 0 ? [] : [block]);
return libExports$1.switchCase(test, [block]);
}));
}
case 'throw': {
@@ -51684,13 +51684,12 @@ function inferMutationAliasingRanges(fn, { isFunctionExpression }) {
}
}
}
const returns = fn.returns.identifier;
functionEffects.push({
kind: 'Create',
into: fn.returns,
value: isPrimitiveType(returns)
value: fn.returnType.kind === 'Primitive'
? ValueKind.Primitive
: isJsxType(returns.type)
: isJsxType(fn.returnType)
? ValueKind.Frozen
: ValueKind.Mutable,
reason: ValueReason.KnownReturnSignature,
@@ -55274,8 +55273,7 @@ function apply(func, unifier) {
}
}
}
const returns = func.returns.identifier;
returns.type = unifier.get(returns.type);
func.returnType = unifier.get(func.returnType);
}
function equation(left, right) {
return {
@@ -55317,13 +55315,13 @@ function* generate(func) {
}
}
if (returnTypes.length > 1) {
yield equation(func.returns.identifier.type, {
yield equation(func.returnType, {
kind: 'Phi',
operands: returnTypes,
});
}
else if (returnTypes.length === 1) {
yield equation(func.returns.identifier.type, returnTypes[0]);
yield equation(func.returnType, returnTypes[0]);
}
}
function setName(names, id, name) {
@@ -55534,7 +55532,7 @@ function* generateInstructionTypes(env, names, instr) {
yield equation(left, {
kind: 'Function',
shapeId: BuiltInFunctionId,
return: value.loweredFunc.func.returns.identifier.type,
return: value.loweredFunc.func.returnType,
isConstructor: false,
});
break;
@@ -57677,6 +57675,7 @@ function emitSelectorFn(env, keys) {
env,
params: [obj],
returnTypeAnnotation: null,
returnType: makeType(),
returns: createTemporaryPlace(env, GeneratedSource),
context: [],
effects: null,
@@ -58094,6 +58093,7 @@ function emitOutlinedFn(env, jsx, oldProps, globals) {
env,
params: [propsObj],
returnTypeAnnotation: null,
returnType: makeType(),
returns: createTemporaryPlace(env, GeneratedSource),
context: [],
effects: null,
@@ -6,7 +6,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @generated SignedSource<<6e88fc340696386e79bbd83502277d08>>
* @generated SignedSource<<190c497bc6d4b2312c051164082a89ab>>
*/
'use strict';
@@ -27062,9 +27062,6 @@ function printFunction(fn) {
if (fn.id !== null) {
definition += fn.id;
}
else {
definition += '<<anonymous>>';
}
if (fn.params.length !== 0) {
definition +=
'(' +
@@ -27083,8 +27080,10 @@ function printFunction(fn) {
else {
definition += '()';
}
definition += `: ${printPlace(fn.returns)}`;
output.push(definition);
if (definition.length !== 0) {
output.push(definition);
}
output.push(`: ${printType(fn.returnType)} @ ${printPlace(fn.returns)}`);
output.push(...fn.directives);
output.push(printHIR(fn.body));
return output.join('\n');
@@ -30909,6 +30908,7 @@ function lower$1(func, env, bindings = null, capturedRefs = new Map()) {
params,
fnType: bindings == null ? env.fnType : 'Other',
returnTypeAnnotation: null,
returnType: makeType(),
returns: createTemporaryPlace(env, (_b = func.node.loc) !== null && _b !== void 0 ? _b : GeneratedSource),
body: builder.build(),
context,
@@ -44326,7 +44326,7 @@ function codegenTerminal(cx, terminal) {
? codegenPlaceToExpression(cx, case_.test)
: null;
const block = codegenBlock(cx, case_.block);
return libExports$1.switchCase(test, block.body.length === 0 ? [] : [block]);
return libExports$1.switchCase(test, [block]);
}));
}
case 'throw': {
@@ -51463,13 +51463,12 @@ function inferMutationAliasingRanges(fn, { isFunctionExpression }) {
}
}
}
const returns = fn.returns.identifier;
functionEffects.push({
kind: 'Create',
into: fn.returns,
value: isPrimitiveType(returns)
value: fn.returnType.kind === 'Primitive'
? ValueKind.Primitive
: isJsxType(returns.type)
: isJsxType(fn.returnType)
? ValueKind.Frozen
: ValueKind.Mutable,
reason: ValueReason.KnownReturnSignature,
@@ -55053,8 +55052,7 @@ function apply(func, unifier) {
}
}
}
const returns = func.returns.identifier;
returns.type = unifier.get(returns.type);
func.returnType = unifier.get(func.returnType);
}
function equation(left, right) {
return {
@@ -55096,13 +55094,13 @@ function* generate(func) {
}
}
if (returnTypes.length > 1) {
yield equation(func.returns.identifier.type, {
yield equation(func.returnType, {
kind: 'Phi',
operands: returnTypes,
});
}
else if (returnTypes.length === 1) {
yield equation(func.returns.identifier.type, returnTypes[0]);
yield equation(func.returnType, returnTypes[0]);
}
}
function setName(names, id, name) {
@@ -55313,7 +55311,7 @@ function* generateInstructionTypes(env, names, instr) {
yield equation(left, {
kind: 'Function',
shapeId: BuiltInFunctionId,
return: value.loweredFunc.func.returns.identifier.type,
return: value.loweredFunc.func.returnType,
isConstructor: false,
});
break;
@@ -57456,6 +57454,7 @@ function emitSelectorFn(env, keys) {
env,
params: [obj],
returnTypeAnnotation: null,
returnType: makeType(),
returns: createTemporaryPlace(env, GeneratedSource),
context: [],
effects: null,
@@ -57873,6 +57872,7 @@ function emitOutlinedFn(env, jsx, oldProps, globals) {
env,
params: [propsObj],
returnTypeAnnotation: null,
returnType: makeType(),
returns: createTemporaryPlace(env, GeneratedSource),
context: [],
effects: null,
@@ -1,7 +1,7 @@
{
"name": "eslint-plugin-react-hooks",
"description": "ESLint rules for React Hooks",
"version": "0.0.0-experimental-123ff13b-20250625",
"version": "0.0.0-experimental-9894c488-20250625",
"repository": {
"type": "git",
"url": "https://github.com/facebook/react.git",