Skip to content

Commit 5a4228c

Browse files
committed
Add MIT license header to feature flag utility script (facebook#34833)
Added the standard Meta Platforms, Inc. MIT license notice to the top of the feature flag comparison script to ensure compliance with repository licensing requirements and for code consistency. **No functional or logic changes were made to the code.** DiffTrain build for [0e32da7](facebook@0e32da7)
1 parent 6ea2095 commit 5a4228c

37 files changed

+391
-319
lines changed

compiled/eslint-plugin-react-hooks/index.js

Lines changed: 233 additions & 205 deletions
Large diffs are not rendered by default.

compiled/facebook-www/JSXDEVRuntime-dev.classic.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,14 +339,18 @@ __DEV__ &&
339339
exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) {
340340
var trackActualOwner =
341341
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
342+
if (trackActualOwner) {
343+
var previousStackTraceLimit = Error.stackTraceLimit;
344+
Error.stackTraceLimit = 10;
345+
var debugStackDEV = Error("react-stack-top-frame");
346+
Error.stackTraceLimit = previousStackTraceLimit;
347+
} else debugStackDEV = unknownOwnerDebugStack;
342348
return jsxDEVImpl(
343349
type,
344350
config,
345351
maybeKey,
346352
isStaticChildren,
347-
trackActualOwner
348-
? Error("react-stack-top-frame")
349-
: unknownOwnerDebugStack,
353+
debugStackDEV,
350354
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
351355
);
352356
};

compiled/facebook-www/JSXDEVRuntime-dev.modern.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,14 +339,18 @@ __DEV__ &&
339339
exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) {
340340
var trackActualOwner =
341341
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
342+
if (trackActualOwner) {
343+
var previousStackTraceLimit = Error.stackTraceLimit;
344+
Error.stackTraceLimit = 10;
345+
var debugStackDEV = Error("react-stack-top-frame");
346+
Error.stackTraceLimit = previousStackTraceLimit;
347+
} else debugStackDEV = unknownOwnerDebugStack;
342348
return jsxDEVImpl(
343349
type,
344350
config,
345351
maybeKey,
346352
isStaticChildren,
347-
trackActualOwner
348-
? Error("react-stack-top-frame")
349-
: unknownOwnerDebugStack,
353+
debugStackDEV,
350354
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
351355
);
352356
};

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
903366b8b1ee4206020492c6e8140645c0cb563e
1+
0e32da71c7540f50ef6bb4bf084043678daae28b
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
903366b8b1ee4206020492c6e8140645c0cb563e
1+
0e32da71c7540f50ef6bb4bf084043678daae28b

compiled/facebook-www/React-dev.classic.js

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,7 @@ __DEV__ &&
11681168
exports.createElement = function (type, config, children) {
11691169
for (var i = 2; i < arguments.length; i++)
11701170
validateChildKeys(arguments[i]);
1171+
var propName;
11711172
i = {};
11721173
var key = null;
11731174
if (null != config)
@@ -1208,13 +1209,18 @@ __DEV__ &&
12081209
? type.displayName || type.name || "Unknown"
12091210
: type
12101211
);
1211-
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1212+
(propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++)
1213+
? ((childArray = Error.stackTraceLimit),
1214+
(Error.stackTraceLimit = 10),
1215+
(childrenLength = Error("react-stack-top-frame")),
1216+
(Error.stackTraceLimit = childArray))
1217+
: (childrenLength = unknownOwnerDebugStack);
12121218
return ReactElement(
12131219
type,
12141220
key,
12151221
i,
12161222
getOwner(),
1217-
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1223+
childrenLength,
12181224
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
12191225
);
12201226
};
@@ -1269,42 +1275,54 @@ __DEV__ &&
12691275
exports.jsx = function (type, config, maybeKey) {
12701276
var trackActualOwner =
12711277
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1278+
if (trackActualOwner) {
1279+
var previousStackTraceLimit = Error.stackTraceLimit;
1280+
Error.stackTraceLimit = 10;
1281+
var debugStackDEV = Error("react-stack-top-frame");
1282+
Error.stackTraceLimit = previousStackTraceLimit;
1283+
} else debugStackDEV = unknownOwnerDebugStack;
12721284
return jsxDEVImpl(
12731285
type,
12741286
config,
12751287
maybeKey,
12761288
!1,
1277-
trackActualOwner
1278-
? Error("react-stack-top-frame")
1279-
: unknownOwnerDebugStack,
1289+
debugStackDEV,
12801290
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
12811291
);
12821292
};
12831293
exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) {
12841294
var trackActualOwner =
12851295
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1296+
if (trackActualOwner) {
1297+
var previousStackTraceLimit = Error.stackTraceLimit;
1298+
Error.stackTraceLimit = 10;
1299+
var debugStackDEV = Error("react-stack-top-frame");
1300+
Error.stackTraceLimit = previousStackTraceLimit;
1301+
} else debugStackDEV = unknownOwnerDebugStack;
12861302
return jsxDEVImpl(
12871303
type,
12881304
config,
12891305
maybeKey,
12901306
isStaticChildren,
1291-
trackActualOwner
1292-
? Error("react-stack-top-frame")
1293-
: unknownOwnerDebugStack,
1307+
debugStackDEV,
12941308
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
12951309
);
12961310
};
12971311
exports.jsxs = function (type, config, maybeKey) {
12981312
var trackActualOwner =
12991313
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1314+
if (trackActualOwner) {
1315+
var previousStackTraceLimit = Error.stackTraceLimit;
1316+
Error.stackTraceLimit = 10;
1317+
var debugStackDEV = Error("react-stack-top-frame");
1318+
Error.stackTraceLimit = previousStackTraceLimit;
1319+
} else debugStackDEV = unknownOwnerDebugStack;
13001320
return jsxDEVImpl(
13011321
type,
13021322
config,
13031323
maybeKey,
13041324
!0,
1305-
trackActualOwner
1306-
? Error("react-stack-top-frame")
1307-
: unknownOwnerDebugStack,
1325+
debugStackDEV,
13081326
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
13091327
);
13101328
};
@@ -1460,7 +1478,7 @@ __DEV__ &&
14601478
exports.useTransition = function () {
14611479
return resolveDispatcher().useTransition();
14621480
};
1463-
exports.version = "19.3.0-www-classic-903366b8-20251015";
1481+
exports.version = "19.3.0-www-classic-0e32da71-20251016";
14641482
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14651483
"function" ===
14661484
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,7 @@ __DEV__ &&
11681168
exports.createElement = function (type, config, children) {
11691169
for (var i = 2; i < arguments.length; i++)
11701170
validateChildKeys(arguments[i]);
1171+
var propName;
11711172
i = {};
11721173
var key = null;
11731174
if (null != config)
@@ -1208,13 +1209,18 @@ __DEV__ &&
12081209
? type.displayName || type.name || "Unknown"
12091210
: type
12101211
);
1211-
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1212+
(propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++)
1213+
? ((childArray = Error.stackTraceLimit),
1214+
(Error.stackTraceLimit = 10),
1215+
(childrenLength = Error("react-stack-top-frame")),
1216+
(Error.stackTraceLimit = childArray))
1217+
: (childrenLength = unknownOwnerDebugStack);
12121218
return ReactElement(
12131219
type,
12141220
key,
12151221
i,
12161222
getOwner(),
1217-
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1223+
childrenLength,
12181224
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
12191225
);
12201226
};
@@ -1269,42 +1275,54 @@ __DEV__ &&
12691275
exports.jsx = function (type, config, maybeKey) {
12701276
var trackActualOwner =
12711277
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1278+
if (trackActualOwner) {
1279+
var previousStackTraceLimit = Error.stackTraceLimit;
1280+
Error.stackTraceLimit = 10;
1281+
var debugStackDEV = Error("react-stack-top-frame");
1282+
Error.stackTraceLimit = previousStackTraceLimit;
1283+
} else debugStackDEV = unknownOwnerDebugStack;
12721284
return jsxDEVImpl(
12731285
type,
12741286
config,
12751287
maybeKey,
12761288
!1,
1277-
trackActualOwner
1278-
? Error("react-stack-top-frame")
1279-
: unknownOwnerDebugStack,
1289+
debugStackDEV,
12801290
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
12811291
);
12821292
};
12831293
exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) {
12841294
var trackActualOwner =
12851295
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1296+
if (trackActualOwner) {
1297+
var previousStackTraceLimit = Error.stackTraceLimit;
1298+
Error.stackTraceLimit = 10;
1299+
var debugStackDEV = Error("react-stack-top-frame");
1300+
Error.stackTraceLimit = previousStackTraceLimit;
1301+
} else debugStackDEV = unknownOwnerDebugStack;
12861302
return jsxDEVImpl(
12871303
type,
12881304
config,
12891305
maybeKey,
12901306
isStaticChildren,
1291-
trackActualOwner
1292-
? Error("react-stack-top-frame")
1293-
: unknownOwnerDebugStack,
1307+
debugStackDEV,
12941308
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
12951309
);
12961310
};
12971311
exports.jsxs = function (type, config, maybeKey) {
12981312
var trackActualOwner =
12991313
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1314+
if (trackActualOwner) {
1315+
var previousStackTraceLimit = Error.stackTraceLimit;
1316+
Error.stackTraceLimit = 10;
1317+
var debugStackDEV = Error("react-stack-top-frame");
1318+
Error.stackTraceLimit = previousStackTraceLimit;
1319+
} else debugStackDEV = unknownOwnerDebugStack;
13001320
return jsxDEVImpl(
13011321
type,
13021322
config,
13031323
maybeKey,
13041324
!0,
1305-
trackActualOwner
1306-
? Error("react-stack-top-frame")
1307-
: unknownOwnerDebugStack,
1325+
debugStackDEV,
13081326
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
13091327
);
13101328
};
@@ -1460,7 +1478,7 @@ __DEV__ &&
14601478
exports.useTransition = function () {
14611479
return resolveDispatcher().useTransition();
14621480
};
1463-
exports.version = "19.3.0-www-modern-903366b8-20251015";
1481+
exports.version = "19.3.0-www-modern-0e32da71-20251016";
14641482
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14651483
"function" ===
14661484
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
606606
exports.useTransition = function () {
607607
return ReactSharedInternals.H.useTransition();
608608
};
609-
exports.version = "19.3.0-www-classic-903366b8-20251015";
609+
exports.version = "19.3.0-www-classic-0e32da71-20251016";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,4 +606,4 @@ exports.useSyncExternalStore = function (
606606
exports.useTransition = function () {
607607
return ReactSharedInternals.H.useTransition();
608608
};
609-
exports.version = "19.3.0-www-modern-903366b8-20251015";
609+
exports.version = "19.3.0-www-modern-0e32da71-20251016";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ exports.useSyncExternalStore = function (
610610
exports.useTransition = function () {
611611
return ReactSharedInternals.H.useTransition();
612612
};
613-
exports.version = "19.3.0-www-classic-903366b8-20251015";
613+
exports.version = "19.3.0-www-classic-0e32da71-20251016";
614614
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
615615
"function" ===
616616
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)