[compiler] Add repro for IIFE in ternary causing a bailout (#33546)

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

DiffTrain build for [75e78d243f](https://github.com/facebook/react/commit/75e78d243f749d009fa1c5c09c3464301b992718)
This commit is contained in:
jbrown215
2025-06-16 19:06:07 -07:00
parent 3b068f6553
commit 15a6dc7dcf
26 changed files with 197 additions and 201 deletions
+1 -1
View File
@@ -1 +1 @@
19.2.0-native-fb-90bee819-20250616
19.2.0-native-fb-75e78d24-20250616
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<e91cacbbd25ef5ec3704e92e4f05e818>>
* @generated SignedSource<<630c960e90cfb49f53ce703b43fc5058>>
*/
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c8f91d5fbb90d1da0bfa1bfe1c6bd800>>
* @generated SignedSource<<b9a3377d38a49313fb0fea5bdd9be663>>
*/
"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-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c8f91d5fbb90d1da0bfa1bfe1c6bd800>>
* @generated SignedSource<<b9a3377d38a49313fb0fea5bdd9be663>>
*/
"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-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<264da4cf0077e039079b0dba5b9855b6>>
* @generated SignedSource<<109ba2365c1b7fa46fc043010b6feb5f>>
*/
/*
@@ -27061,11 +27061,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-90bee819-20250616" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-75e78d24-20250616" !== 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-90bee819-20250616\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-75e78d24-20250616\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -27102,10 +27102,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616"
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -27243,5 +27243,5 @@ __DEV__ &&
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b382829c48457d999d45010f7474d428>>
* @generated SignedSource<<d04189e38310f6ee8c3a98a1b2bed36b>>
*/
/*
@@ -17118,14 +17118,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2017 = React.version;
if (
"19.2.0-native-fb-90bee819-20250616" !==
"19.2.0-native-fb-75e78d24-20250616" !==
isomorphicReactPackageVersion$jscomp$inline_2017
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2017,
"19.2.0-native-fb-90bee819-20250616"
"19.2.0-native-fb-75e78d24-20250616"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17147,10 +17147,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2536 = {
bundleType: 0,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616"
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2537 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17248,4 +17248,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<4079ebdc4d227c938a62849a7904f159>>
* @generated SignedSource<<5fd386cdd936654f6c3f872ef12e82dd>>
*/
/*
@@ -17828,14 +17828,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2120 = React.version;
if (
"19.2.0-native-fb-90bee819-20250616" !==
"19.2.0-native-fb-75e78d24-20250616" !==
isomorphicReactPackageVersion$jscomp$inline_2120
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2120,
"19.2.0-native-fb-90bee819-20250616"
"19.2.0-native-fb-75e78d24-20250616"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17857,10 +17857,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2127 = {
bundleType: 0,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616",
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$313 = 0;
@@ -17973,4 +17973,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<5747f93efd2f4cf88b4f0abbd46ca834>>
* @generated SignedSource<<b06f747feceac8be51047297e0488527>>
*/
/*
@@ -27117,11 +27117,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-90bee819-20250616" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-75e78d24-20250616" !== 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-90bee819-20250616\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-75e78d24-20250616\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -27158,10 +27158,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616"
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -27615,7 +27615,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8a5c1a7a6b98308ae029e55ae4d40a89>>
* @generated SignedSource<<a13cc681f4444fb472ffa96a00f80894>>
*/
/*
@@ -17129,14 +17129,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2018 = React.version;
if (
"19.2.0-native-fb-90bee819-20250616" !==
"19.2.0-native-fb-75e78d24-20250616" !==
isomorphicReactPackageVersion$jscomp$inline_2018
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2018,
"19.2.0-native-fb-90bee819-20250616"
"19.2.0-native-fb-75e78d24-20250616"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17158,10 +17158,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2539 = {
bundleType: 0,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616"
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2540 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17412,4 +17412,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<23c3c08ad5df710086586a20e27468d3>>
* @generated SignedSource<<cf408fad07f798041c15fc74734d89c5>>
*/
/*
@@ -17843,14 +17843,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2121 = React.version;
if (
"19.2.0-native-fb-90bee819-20250616" !==
"19.2.0-native-fb-75e78d24-20250616" !==
isomorphicReactPackageVersion$jscomp$inline_2121
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2121,
"19.2.0-native-fb-90bee819-20250616"
"19.2.0-native-fb-75e78d24-20250616"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17872,10 +17872,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2128 = {
bundleType: 0,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616",
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$313 = 0;
@@ -18141,7 +18141,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<c5123d4648a0d1232a29397e09834f41>>
* @generated SignedSource<<12150442b769f0fb84d725a8dd8ee196>>
*/
"use strict";
@@ -15705,10 +15705,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616"
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15853,5 +15853,5 @@ __DEV__ &&
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<3628a797625890dd57e6b538c02767f0>>
* @generated SignedSource<<2c34fddf25beef74d8d77d18f5e6e3b1>>
*/
"use strict";
@@ -9902,10 +9902,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1447 = {
bundleType: 0,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616"
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1448 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10041,4 +10041,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<21dd7679601e8b242c13c90da4f602ce>>
* @generated SignedSource<<a21245e187a354e27c6cd46547bac93c>>
*/
"use strict";
@@ -10522,10 +10522,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1254 = {
bundleType: 0,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616",
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$155 = 0;
@@ -10676,4 +10676,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<e5ea60910e3df4bacceb78e9766a690d>>
* @generated SignedSource<<a082ba08dfb335cedf1100fcd4b7dab8>>
*/
"use strict";
@@ -1410,7 +1410,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2c11b999e92e129aec0693465b49a6b4>>
* @generated SignedSource<<103d6927e9005afd28ef051b67793c98>>
*/
"use strict";
@@ -586,4 +586,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<af46d7d9f6ccb392afab895ad8d4c8e3>>
* @generated SignedSource<<80b822a95c4287b9c15c7a6b29f12344>>
*/
"use strict";
@@ -590,7 +590,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-90bee819-20250616";
exports.version = "19.2.0-native-fb-75e78d24-20250616";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
90bee819028bfecb724df298da798607b6a76abf
75e78d243f749d009fa1c5c09c3464301b992718
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<efa474b33666a5f3a66ade13ef4d2b44>>
* @generated SignedSource<<261c21f008b70d3ce80fba3cd796d67f>>
*/
"use strict";
@@ -17580,10 +17580,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616"
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<636b5b12464e0c13aefffb3c7c3a3989>>
* @generated SignedSource<<a78dfcd529734941eb812c8b5b822f2a>>
*/
"use strict";
@@ -11261,10 +11261,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1263 = {
bundleType: 0,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616"
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1263.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<72a4e4c624bcee2af3c0d5475843aced>>
* @generated SignedSource<<5ed5a15461634ad18804688ef3972bd5>>
*/
"use strict";
@@ -11965,10 +11965,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1364 = {
bundleType: 0,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616"
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1364.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<aaac18ac2493ab4800f2cea7e9ab4120>>
* @generated SignedSource<<f32b620dafbb0bc0fc8c182699213106>>
*/
"use strict";
@@ -17656,11 +17656,11 @@ __DEV__ &&
shouldSuspendImpl = newShouldSuspendImpl;
};
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-90bee819-20250616" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-75e78d24-20250616" !== 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-90bee819-20250616\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-75e78d24-20250616\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -17686,10 +17686,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616"
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<22d03dd04a622f409ce1c010bd693250>>
* @generated SignedSource<<0d86b502d20d7b3f89c80e05d5dcd021>>
*/
"use strict";
@@ -11218,11 +11218,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-90bee819-20250616" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-75e78d24-20250616" !== 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-90bee819-20250616\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-75e78d24-20250616\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11272,10 +11272,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1307 = {
bundleType: 0,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616"
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1307.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2c4c24a19d7f4d88093a476f6cd88f9f>>
* @generated SignedSource<<860a6987b4dae76e902fd13a08c61776>>
*/
"use strict";
@@ -11920,11 +11920,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-90bee819-20250616" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-75e78d24-20250616" !== 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-90bee819-20250616\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-75e78d24-20250616\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11974,10 +11974,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1408 = {
bundleType: 0,
version: "19.2.0-native-fb-90bee819-20250616",
version: "19.2.0-native-fb-75e78d24-20250616",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-90bee819-20250616"
reconcilerVersion: "19.2.0-native-fb-75e78d24-20250616"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1408.rendererConfig = extraDevToolsConfig);
@@ -12,7 +12,7 @@
* @lightSyntaxTransform
* @preventMunge
* @oncall react_core
* @generated SignedSource<<6f3965782e9227b96e955551e0d10967>>
* @generated SignedSource<<870f00adc13ea8547e454cb0410e95d9>>
*/
'use strict';
@@ -49666,64 +49666,62 @@ function inlineImmediatelyInvokedFunctionExpressions(fn) {
const inlinedFunctions = new Set();
const queue = Array.from(fn.body.blocks.values());
queue: for (const block of queue) {
if (isStatementBlockKind(block.kind)) {
for (let ii = 0; ii < block.instructions.length; ii++) {
const instr = block.instructions[ii];
switch (instr.value.kind) {
case 'FunctionExpression': {
if (instr.lvalue.identifier.name === null) {
functions.set(instr.lvalue.identifier.id, instr.value);
}
break;
for (let ii = 0; ii < block.instructions.length; ii++) {
const instr = block.instructions[ii];
switch (instr.value.kind) {
case 'FunctionExpression': {
if (instr.lvalue.identifier.name === null) {
functions.set(instr.lvalue.identifier.id, instr.value);
}
case 'CallExpression': {
if (instr.value.args.length !== 0) {
continue;
}
const body = functions.get(instr.value.callee.identifier.id);
if (body === undefined) {
continue;
}
if (body.loweredFunc.func.params.length > 0 ||
body.loweredFunc.func.async ||
body.loweredFunc.func.generator) {
continue;
}
inlinedFunctions.add(instr.value.callee.identifier.id);
const continuationBlockId = fn.env.nextBlockId;
const continuationBlock = {
id: continuationBlockId,
instructions: block.instructions.slice(ii + 1),
kind: block.kind,
phis: new Set(),
preds: new Set(),
terminal: block.terminal,
};
fn.body.blocks.set(continuationBlockId, continuationBlock);
block.instructions.length = ii;
const newTerminal = {
block: body.loweredFunc.func.body.entry,
id: makeInstructionId(0),
kind: 'label',
fallthrough: continuationBlockId,
loc: block.terminal.loc,
};
block.terminal = newTerminal;
const result = instr.lvalue;
declareTemporary(fn.env, block, result);
promoteTemporary(result.identifier);
for (const [id, block] of body.loweredFunc.func.body.blocks) {
block.preds.clear();
rewriteBlock(fn.env, block, continuationBlockId, result);
fn.body.blocks.set(id, block);
}
queue.push(continuationBlock);
continue queue;
break;
}
case 'CallExpression': {
if (instr.value.args.length !== 0) {
continue;
}
default: {
for (const place of eachInstructionValueOperand(instr.value)) {
functions.delete(place.identifier.id);
}
const body = functions.get(instr.value.callee.identifier.id);
if (body === undefined) {
continue;
}
if (body.loweredFunc.func.params.length > 0 ||
body.loweredFunc.func.async ||
body.loweredFunc.func.generator) {
continue;
}
inlinedFunctions.add(instr.value.callee.identifier.id);
const continuationBlockId = fn.env.nextBlockId;
const continuationBlock = {
id: continuationBlockId,
instructions: block.instructions.slice(ii + 1),
kind: block.kind,
phis: new Set(),
preds: new Set(),
terminal: block.terminal,
};
fn.body.blocks.set(continuationBlockId, continuationBlock);
block.instructions.length = ii;
const newTerminal = {
block: body.loweredFunc.func.body.entry,
id: makeInstructionId(0),
kind: 'label',
fallthrough: continuationBlockId,
loc: block.terminal.loc,
};
block.terminal = newTerminal;
const result = instr.lvalue;
declareTemporary(fn.env, block, result);
promoteTemporary(result.identifier);
for (const [id, block] of body.loweredFunc.func.body.blocks) {
block.preds.clear();
rewriteBlock(fn.env, block, continuationBlockId, result);
fn.body.blocks.set(id, block);
}
queue.push(continuationBlock);
continue queue;
}
default: {
for (const place of eachInstructionValueOperand(instr.value)) {
functions.delete(place.identifier.id);
}
}
}
@@ -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<<6bd04f43c2c59c63845a3660db4ebd24>>
* @generated SignedSource<<2a9081e0196e1db500124884fc1203a5>>
*/
'use strict';
@@ -49445,64 +49445,62 @@ function inlineImmediatelyInvokedFunctionExpressions(fn) {
const inlinedFunctions = new Set();
const queue = Array.from(fn.body.blocks.values());
queue: for (const block of queue) {
if (isStatementBlockKind(block.kind)) {
for (let ii = 0; ii < block.instructions.length; ii++) {
const instr = block.instructions[ii];
switch (instr.value.kind) {
case 'FunctionExpression': {
if (instr.lvalue.identifier.name === null) {
functions.set(instr.lvalue.identifier.id, instr.value);
}
break;
for (let ii = 0; ii < block.instructions.length; ii++) {
const instr = block.instructions[ii];
switch (instr.value.kind) {
case 'FunctionExpression': {
if (instr.lvalue.identifier.name === null) {
functions.set(instr.lvalue.identifier.id, instr.value);
}
case 'CallExpression': {
if (instr.value.args.length !== 0) {
continue;
}
const body = functions.get(instr.value.callee.identifier.id);
if (body === undefined) {
continue;
}
if (body.loweredFunc.func.params.length > 0 ||
body.loweredFunc.func.async ||
body.loweredFunc.func.generator) {
continue;
}
inlinedFunctions.add(instr.value.callee.identifier.id);
const continuationBlockId = fn.env.nextBlockId;
const continuationBlock = {
id: continuationBlockId,
instructions: block.instructions.slice(ii + 1),
kind: block.kind,
phis: new Set(),
preds: new Set(),
terminal: block.terminal,
};
fn.body.blocks.set(continuationBlockId, continuationBlock);
block.instructions.length = ii;
const newTerminal = {
block: body.loweredFunc.func.body.entry,
id: makeInstructionId(0),
kind: 'label',
fallthrough: continuationBlockId,
loc: block.terminal.loc,
};
block.terminal = newTerminal;
const result = instr.lvalue;
declareTemporary(fn.env, block, result);
promoteTemporary(result.identifier);
for (const [id, block] of body.loweredFunc.func.body.blocks) {
block.preds.clear();
rewriteBlock(fn.env, block, continuationBlockId, result);
fn.body.blocks.set(id, block);
}
queue.push(continuationBlock);
continue queue;
break;
}
case 'CallExpression': {
if (instr.value.args.length !== 0) {
continue;
}
default: {
for (const place of eachInstructionValueOperand(instr.value)) {
functions.delete(place.identifier.id);
}
const body = functions.get(instr.value.callee.identifier.id);
if (body === undefined) {
continue;
}
if (body.loweredFunc.func.params.length > 0 ||
body.loweredFunc.func.async ||
body.loweredFunc.func.generator) {
continue;
}
inlinedFunctions.add(instr.value.callee.identifier.id);
const continuationBlockId = fn.env.nextBlockId;
const continuationBlock = {
id: continuationBlockId,
instructions: block.instructions.slice(ii + 1),
kind: block.kind,
phis: new Set(),
preds: new Set(),
terminal: block.terminal,
};
fn.body.blocks.set(continuationBlockId, continuationBlock);
block.instructions.length = ii;
const newTerminal = {
block: body.loweredFunc.func.body.entry,
id: makeInstructionId(0),
kind: 'label',
fallthrough: continuationBlockId,
loc: block.terminal.loc,
};
block.terminal = newTerminal;
const result = instr.lvalue;
declareTemporary(fn.env, block, result);
promoteTemporary(result.identifier);
for (const [id, block] of body.loweredFunc.func.body.blocks) {
block.preds.clear();
rewriteBlock(fn.env, block, continuationBlockId, result);
fn.body.blocks.set(id, block);
}
queue.push(continuationBlock);
continue queue;
}
default: {
for (const place of eachInstructionValueOperand(instr.value)) {
functions.delete(place.identifier.id);
}
}
}
@@ -1,7 +1,7 @@
{
"name": "eslint-plugin-react-hooks",
"description": "ESLint rules for React Hooks",
"version": "0.0.0-experimental-90bee819-20250616",
"version": "0.0.0-experimental-75e78d24-20250616",
"repository": {
"type": "git",
"url": "https://github.com/facebook/react.git",