mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[compiler][ez] Only fail gating hoisting check for referenced identifiers (#32596)
Reduce false positive bailouts by using the same
`isReferencedIdentifier` logic that the compiler also uses for
determining context variables and a function's own hoisted declarations.
Details:
Previously, we counted every babel identifier as a reference. This is
problematic because babel counts most string symbols as an identifier.
```js
print(x); // x is an identifier as expected
obj.x // x is.. also an identifier here
{x: 2} // x is also an identifier here
```
This PR adds a check for `isReferencedIdentifier`. Note that only
non-lval
references pass this check. This should be fine as we don't need to
hoist function declarations before writes to the same lvalue (which
should error in strict mode anyways)
```js
print(x); // isReferencedIdentifier(x) -> true
obj.x // isReferencedIdentifier(x) -> false
{x: 2} // isReferencedIdentifier(x) -> false
x = 2 // isReferencedIdentifier(x) -> false
```
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32596).
* __->__ #32596
* #32595
* #32594
* #32593
* #32522
* #32521
DiffTrain build for [f457d0b4c6](https://github.com/facebook/react/commit/f457d0b4c6dd70c10acb9c93c7d01c80d8e23b92)
This commit is contained in:
@@ -1 +1 @@
|
||||
1c79cb82ab8d3bd1f099115704f28df1097beb46
|
||||
f457d0b4c6dd70c10acb9c93c7d01c80d8e23b92
|
||||
|
||||
@@ -1 +1 @@
|
||||
1c79cb82ab8d3bd1f099115704f28df1097beb46
|
||||
f457d0b4c6dd70c10acb9c93c7d01c80d8e23b92
|
||||
|
||||
@@ -1532,7 +1532,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -1532,7 +1532,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
|
||||
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
|
||||
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -18546,10 +18546,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-www-classic-89a46a57-20250313",
|
||||
version: "19.1.0-www-classic-f457d0b4-20250313",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-classic-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-classic-f457d0b4-20250313"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -18583,7 +18583,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -18318,10 +18318,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-www-modern-89a46a57-20250313",
|
||||
version: "19.1.0-www-modern-f457d0b4-20250313",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-modern-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-modern-f457d0b4-20250313"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -18355,7 +18355,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -11341,10 +11341,10 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1587 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-www-classic-89a46a57-20250313",
|
||||
version: "19.1.0-www-classic-f457d0b4-20250313",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-classic-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-classic-f457d0b4-20250313"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1588 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -11370,4 +11370,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
|
||||
@@ -11056,10 +11056,10 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1560 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-www-modern-89a46a57-20250313",
|
||||
version: "19.1.0-www-modern-f457d0b4-20250313",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-modern-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-modern-f457d0b4-20250313"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1561 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -11085,4 +11085,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
|
||||
@@ -30197,11 +30197,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.1.0-www-classic-89a46a57-20250313" !== isomorphicReactPackageVersion)
|
||||
if ("19.1.0-www-classic-f457d0b4-20250313" !== 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.1.0-www-classic-89a46a57-20250313\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.1.0-www-classic-f457d0b4-20250313\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -30244,10 +30244,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-www-classic-89a46a57-20250313",
|
||||
version: "19.1.0-www-classic-f457d0b4-20250313",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-classic-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-classic-f457d0b4-20250313"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -30845,7 +30845,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -29983,11 +29983,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.1.0-www-modern-89a46a57-20250313" !== isomorphicReactPackageVersion)
|
||||
if ("19.1.0-www-modern-f457d0b4-20250313" !== 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.1.0-www-modern-89a46a57-20250313\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.1.0-www-modern-f457d0b4-20250313\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -30030,10 +30030,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-www-modern-89a46a57-20250313",
|
||||
version: "19.1.0-www-modern-f457d0b4-20250313",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-modern-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-modern-f457d0b4-20250313"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -30631,7 +30631,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -18935,14 +18935,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1925 = React.version;
|
||||
if (
|
||||
"19.1.0-www-classic-89a46a57-20250313" !==
|
||||
"19.1.0-www-classic-f457d0b4-20250313" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1925
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1925,
|
||||
"19.1.0-www-classic-89a46a57-20250313"
|
||||
"19.1.0-www-classic-f457d0b4-20250313"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -18960,10 +18960,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2505 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-www-classic-89a46a57-20250313",
|
||||
version: "19.1.0-www-classic-f457d0b4-20250313",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-classic-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-classic-f457d0b4-20250313"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2506 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -19327,4 +19327,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
|
||||
@@ -18666,14 +18666,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1915 = React.version;
|
||||
if (
|
||||
"19.1.0-www-modern-89a46a57-20250313" !==
|
||||
"19.1.0-www-modern-f457d0b4-20250313" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1915
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1915,
|
||||
"19.1.0-www-modern-89a46a57-20250313"
|
||||
"19.1.0-www-modern-f457d0b4-20250313"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -18691,10 +18691,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2487 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-www-modern-89a46a57-20250313",
|
||||
version: "19.1.0-www-modern-f457d0b4-20250313",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-modern-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-modern-f457d0b4-20250313"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2488 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -19058,4 +19058,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
|
||||
@@ -20677,14 +20677,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2085 = React.version;
|
||||
if (
|
||||
"19.1.0-www-classic-89a46a57-20250313" !==
|
||||
"19.1.0-www-classic-f457d0b4-20250313" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2085
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2085,
|
||||
"19.1.0-www-classic-89a46a57-20250313"
|
||||
"19.1.0-www-classic-f457d0b4-20250313"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -20702,10 +20702,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2087 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-www-classic-89a46a57-20250313",
|
||||
version: "19.1.0-www-classic-f457d0b4-20250313",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-classic-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-classic-f457d0b4-20250313"
|
||||
};
|
||||
enableSchedulingProfiler &&
|
||||
((internals$jscomp$inline_2087.getLaneLabelMap = getLaneLabelMap),
|
||||
@@ -21072,7 +21072,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -20475,14 +20475,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2075 = React.version;
|
||||
if (
|
||||
"19.1.0-www-modern-89a46a57-20250313" !==
|
||||
"19.1.0-www-modern-f457d0b4-20250313" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2075
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2075,
|
||||
"19.1.0-www-modern-89a46a57-20250313"
|
||||
"19.1.0-www-modern-f457d0b4-20250313"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -20500,10 +20500,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2077 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-www-modern-89a46a57-20250313",
|
||||
version: "19.1.0-www-modern-f457d0b4-20250313",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-modern-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-modern-f457d0b4-20250313"
|
||||
};
|
||||
enableSchedulingProfiler &&
|
||||
((internals$jscomp$inline_2077.getLaneLabelMap = getLaneLabelMap),
|
||||
@@ -20870,7 +20870,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -9412,5 +9412,5 @@ __DEV__ &&
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
})();
|
||||
|
||||
@@ -9238,5 +9238,5 @@ __DEV__ &&
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
})();
|
||||
|
||||
@@ -6196,4 +6196,4 @@ exports.renderToString = function (children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
|
||||
@@ -6108,4 +6108,4 @@ exports.renderToString = function (children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
|
||||
@@ -30518,11 +30518,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.1.0-www-classic-89a46a57-20250313" !== isomorphicReactPackageVersion)
|
||||
if ("19.1.0-www-classic-f457d0b4-20250313" !== 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.1.0-www-classic-89a46a57-20250313\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.1.0-www-classic-f457d0b4-20250313\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -30565,10 +30565,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-www-classic-89a46a57-20250313",
|
||||
version: "19.1.0-www-classic-f457d0b4-20250313",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-classic-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-classic-f457d0b4-20250313"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -31332,5 +31332,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
})();
|
||||
|
||||
@@ -30304,11 +30304,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.1.0-www-modern-89a46a57-20250313" !== isomorphicReactPackageVersion)
|
||||
if ("19.1.0-www-modern-f457d0b4-20250313" !== 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.1.0-www-modern-89a46a57-20250313\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.1.0-www-modern-f457d0b4-20250313\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -30351,10 +30351,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-www-modern-89a46a57-20250313",
|
||||
version: "19.1.0-www-modern-f457d0b4-20250313",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-modern-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-modern-f457d0b4-20250313"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -31118,5 +31118,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
})();
|
||||
|
||||
@@ -19251,14 +19251,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1954 = React.version;
|
||||
if (
|
||||
"19.1.0-www-classic-89a46a57-20250313" !==
|
||||
"19.1.0-www-classic-f457d0b4-20250313" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1954
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1954,
|
||||
"19.1.0-www-classic-89a46a57-20250313"
|
||||
"19.1.0-www-classic-f457d0b4-20250313"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19276,10 +19276,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2539 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-www-classic-89a46a57-20250313",
|
||||
version: "19.1.0-www-classic-f457d0b4-20250313",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-classic-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-classic-f457d0b4-20250313"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2540 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -19794,4 +19794,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
|
||||
@@ -18982,14 +18982,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1944 = React.version;
|
||||
if (
|
||||
"19.1.0-www-modern-89a46a57-20250313" !==
|
||||
"19.1.0-www-modern-f457d0b4-20250313" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1944
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1944,
|
||||
"19.1.0-www-modern-89a46a57-20250313"
|
||||
"19.1.0-www-modern-f457d0b4-20250313"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19007,10 +19007,10 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2521 = {
|
||||
bundleType: 0,
|
||||
version: "19.1.0-www-modern-89a46a57-20250313",
|
||||
version: "19.1.0-www-modern-f457d0b4-20250313",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-modern-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-modern-f457d0b4-20250313"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2522 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -19525,4 +19525,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
|
||||
@@ -21261,7 +21261,7 @@ __DEV__ &&
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-classic-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-classic-f457d0b4-20250313"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -21042,7 +21042,7 @@ __DEV__ &&
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-modern-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-modern-f457d0b4-20250313"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -13950,7 +13950,7 @@ module.exports = function ($$$config) {
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-classic-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-classic-f457d0b4-20250313"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -13669,7 +13669,7 @@ module.exports = function ($$$config) {
|
||||
version: rendererVersion,
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-modern-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-modern-f457d0b4-20250313"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -15076,10 +15076,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-www-classic-89a46a57-20250313",
|
||||
version: "19.1.0-www-classic-f457d0b4-20250313",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-classic-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-classic-f457d0b4-20250313"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15214,5 +15214,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.1.0-www-classic-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-classic-f457d0b4-20250313";
|
||||
})();
|
||||
|
||||
@@ -15076,10 +15076,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.1.0-www-modern-89a46a57-20250313",
|
||||
version: "19.1.0-www-modern-f457d0b4-20250313",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.1.0-www-modern-89a46a57-20250313"
|
||||
reconcilerVersion: "19.1.0-www-modern-f457d0b4-20250313"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15214,5 +15214,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.1.0-www-modern-89a46a57-20250313";
|
||||
exports.version = "19.1.0-www-modern-f457d0b4-20250313";
|
||||
})();
|
||||
|
||||
@@ -1 +1 @@
|
||||
19.1.0-www-classic-89a46a57-20250313
|
||||
19.1.0-www-classic-f457d0b4-20250313
|
||||
@@ -1 +1 @@
|
||||
19.1.0-www-modern-89a46a57-20250313
|
||||
19.1.0-www-modern-f457d0b4-20250313
|
||||
@@ -72960,7 +72960,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
||||
return;
|
||||
}
|
||||
var scope = id.scope.getFunctionParent();
|
||||
if (scope === null) {
|
||||
if (scope === null && id.isReferencedIdentifier()) {
|
||||
errors.pushErrorDetail(
|
||||
new CompilerErrorDetail({
|
||||
reason:
|
||||
|
||||
Reference in New Issue
Block a user