Skip to content

Commit

Permalink
Ensure function arity is preserved after build (#31808)
Browse files Browse the repository at this point in the history
Co-authored-by: eps1lon <[email protected]>

DiffTrain build for [2bd1c75](2bd1c75)
  • Loading branch information
eps1lon committed Dec 18, 2024
1 parent 740cf06 commit 010ea53
Show file tree
Hide file tree
Showing 34 changed files with 336 additions and 648 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6a4b46cd70d2672bc4be59dcb5b8dede22ed0cef
2bd1c756c6fffefb00cdb2986218fa2701ece82e
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6a4b46cd70d2672bc4be59dcb5b8dede22ed0cef
2bd1c756c6fffefb00cdb2986218fa2701ece82e
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-classic-6a4b46cd-20241217";
exports.version = "19.1.0-www-classic-2bd1c756-20241218";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-modern-6a4b46cd-20241217";
exports.version = "19.1.0-www-modern-2bd1c756-20241218";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-6a4b46cd-20241217";
exports.version = "19.1.0-www-classic-2bd1c756-20241218";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-6a4b46cd-20241217";
exports.version = "19.1.0-www-modern-2bd1c756-20241218";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-6a4b46cd-20241217";
exports.version = "19.1.0-www-classic-2bd1c756-20241218";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-6a4b46cd-20241217";
exports.version = "19.1.0-www-modern-2bd1c756-20241218";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
72 changes: 22 additions & 50 deletions compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -4598,66 +4598,38 @@ __DEV__ &&
provider = provider.return;
}
}
function dispatchReducerAction(
fiber,
queue,
action,
JSCompiler_OptimizeArgumentsArray_p0
) {
"function" === typeof JSCompiler_OptimizeArgumentsArray_p0 &&
function dispatchReducerAction(fiber, queue, action) {
var args = arguments;
"function" === typeof args[3] &&
error$jscomp$0(
"State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."
);
JSCompiler_OptimizeArgumentsArray_p0 = requestUpdateLane(fiber);
action = {
lane: JSCompiler_OptimizeArgumentsArray_p0,
args = requestUpdateLane(fiber);
var update = {
lane: args,
revertLane: 0,
action: action,
hasEagerState: !1,
eagerState: null,
next: null
};
isRenderPhaseUpdate(fiber)
? enqueueRenderPhaseUpdate(queue, action)
: ((action = enqueueConcurrentHookUpdate(
fiber,
queue,
action,
JSCompiler_OptimizeArgumentsArray_p0
)),
null !== action &&
(scheduleUpdateOnFiber(
action,
fiber,
JSCompiler_OptimizeArgumentsArray_p0
),
entangleTransitionUpdate(
action,
queue,
JSCompiler_OptimizeArgumentsArray_p0
)));
enableSchedulingProfiler &&
markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p0);
}
function dispatchSetState(
fiber,
queue,
action,
JSCompiler_OptimizeArgumentsArray_p1
) {
"function" === typeof JSCompiler_OptimizeArgumentsArray_p1 &&
? enqueueRenderPhaseUpdate(queue, update)
: ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)),
null !== update &&
(scheduleUpdateOnFiber(update, fiber, args),
entangleTransitionUpdate(update, queue, args)));
enableSchedulingProfiler && markStateUpdateScheduled(fiber, args);
}
function dispatchSetState(fiber, queue, action) {
var args = arguments;
"function" === typeof args[3] &&
error$jscomp$0(
"State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."
);
JSCompiler_OptimizeArgumentsArray_p1 = requestUpdateLane(fiber);
dispatchSetStateInternal(
fiber,
queue,
action,
JSCompiler_OptimizeArgumentsArray_p1
);
enableSchedulingProfiler &&
markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p1);
args = requestUpdateLane(fiber);
dispatchSetStateInternal(fiber, queue, action, args);
enableSchedulingProfiler && markStateUpdateScheduled(fiber, args);
}
function dispatchSetStateInternal(fiber, queue, action, lane) {
var update = {
Expand Down Expand Up @@ -16898,10 +16870,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-6a4b46cd-20241217",
version: "19.1.0-www-classic-2bd1c756-20241218",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-6a4b46cd-20241217"
reconcilerVersion: "19.1.0-www-classic-2bd1c756-20241218"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16935,7 +16907,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-6a4b46cd-20241217";
exports.version = "19.1.0-www-classic-2bd1c756-20241218";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
72 changes: 22 additions & 50 deletions compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -4490,66 +4490,38 @@ __DEV__ &&
provider = provider.return;
}
}
function dispatchReducerAction(
fiber,
queue,
action,
JSCompiler_OptimizeArgumentsArray_p0
) {
"function" === typeof JSCompiler_OptimizeArgumentsArray_p0 &&
function dispatchReducerAction(fiber, queue, action) {
var args = arguments;
"function" === typeof args[3] &&
error$jscomp$0(
"State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."
);
JSCompiler_OptimizeArgumentsArray_p0 = requestUpdateLane(fiber);
action = {
lane: JSCompiler_OptimizeArgumentsArray_p0,
args = requestUpdateLane(fiber);
var update = {
lane: args,
revertLane: 0,
action: action,
hasEagerState: !1,
eagerState: null,
next: null
};
isRenderPhaseUpdate(fiber)
? enqueueRenderPhaseUpdate(queue, action)
: ((action = enqueueConcurrentHookUpdate(
fiber,
queue,
action,
JSCompiler_OptimizeArgumentsArray_p0
)),
null !== action &&
(scheduleUpdateOnFiber(
action,
fiber,
JSCompiler_OptimizeArgumentsArray_p0
),
entangleTransitionUpdate(
action,
queue,
JSCompiler_OptimizeArgumentsArray_p0
)));
enableSchedulingProfiler &&
markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p0);
}
function dispatchSetState(
fiber,
queue,
action,
JSCompiler_OptimizeArgumentsArray_p1
) {
"function" === typeof JSCompiler_OptimizeArgumentsArray_p1 &&
? enqueueRenderPhaseUpdate(queue, update)
: ((update = enqueueConcurrentHookUpdate(fiber, queue, update, args)),
null !== update &&
(scheduleUpdateOnFiber(update, fiber, args),
entangleTransitionUpdate(update, queue, args)));
enableSchedulingProfiler && markStateUpdateScheduled(fiber, args);
}
function dispatchSetState(fiber, queue, action) {
var args = arguments;
"function" === typeof args[3] &&
error$jscomp$0(
"State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."
);
JSCompiler_OptimizeArgumentsArray_p1 = requestUpdateLane(fiber);
dispatchSetStateInternal(
fiber,
queue,
action,
JSCompiler_OptimizeArgumentsArray_p1
);
enableSchedulingProfiler &&
markStateUpdateScheduled(fiber, JSCompiler_OptimizeArgumentsArray_p1);
args = requestUpdateLane(fiber);
dispatchSetStateInternal(fiber, queue, action, args);
enableSchedulingProfiler && markStateUpdateScheduled(fiber, args);
}
function dispatchSetStateInternal(fiber, queue, action, lane) {
var update = {
Expand Down Expand Up @@ -16661,10 +16633,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-6a4b46cd-20241217",
version: "19.1.0-www-modern-2bd1c756-20241218",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-6a4b46cd-20241217"
reconcilerVersion: "19.1.0-www-modern-2bd1c756-20241218"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16698,7 +16670,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-6a4b46cd-20241217";
exports.version = "19.1.0-www-modern-2bd1c756-20241218";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -10757,10 +10757,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1495 = {
bundleType: 0,
version: "19.1.0-www-classic-6a4b46cd-20241217",
version: "19.1.0-www-classic-2bd1c756-20241218",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-6a4b46cd-20241217"
reconcilerVersion: "19.1.0-www-classic-2bd1c756-20241218"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1496 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10786,4 +10786,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-6a4b46cd-20241217";
exports.version = "19.1.0-www-classic-2bd1c756-20241218";
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -10473,10 +10473,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1474 = {
bundleType: 0,
version: "19.1.0-www-modern-6a4b46cd-20241217",
version: "19.1.0-www-modern-2bd1c756-20241218",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-6a4b46cd-20241217"
reconcilerVersion: "19.1.0-www-modern-2bd1c756-20241218"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1475 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand All @@ -10502,4 +10502,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-6a4b46cd-20241217";
exports.version = "19.1.0-www-modern-2bd1c756-20241218";
Loading

0 comments on commit 010ea53

Please sign in to comment.