Skip to content

Commit 108ddbe

Browse files
committed
Delete use of source in JSX runtime (#28433)
Only remaining place it was being used was in a warning message. DiffTrain build for commit 16d3f78.
1 parent 355d677 commit 108ddbe

File tree

9 files changed

+12
-88
lines changed

9 files changed

+12
-88
lines changed

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25727,7 +25727,7 @@ if (__DEV__) {
2572725727
return root;
2572825728
}
2572925729

25730-
var ReactVersion = "18.3.0-canary-d579e7748-20240223";
25730+
var ReactVersion = "18.3.0-canary-16d3f7833-20240223";
2573125731

2573225732
// Might add PROFILE later.
2573325733

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9171,7 +9171,7 @@ var devToolsConfig$jscomp$inline_1014 = {
91719171
throw Error("TestRenderer does not support findFiberByHostInstance()");
91729172
},
91739173
bundleType: 0,
9174-
version: "18.3.0-canary-d579e7748-20240223",
9174+
version: "18.3.0-canary-16d3f7833-20240223",
91759175
rendererPackageName: "react-test-renderer"
91769176
};
91779177
var internals$jscomp$inline_1195 = {
@@ -9202,7 +9202,7 @@ var internals$jscomp$inline_1195 = {
92029202
scheduleRoot: null,
92039203
setRefreshHandler: null,
92049204
getCurrentFiber: null,
9205-
reconcilerVersion: "18.3.0-canary-d579e7748-20240223"
9205+
reconcilerVersion: "18.3.0-canary-16d3f7833-20240223"
92069206
};
92079207
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
92089208
var hook$jscomp$inline_1196 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9599,7 +9599,7 @@ var devToolsConfig$jscomp$inline_1056 = {
95999599
throw Error("TestRenderer does not support findFiberByHostInstance()");
96009600
},
96019601
bundleType: 0,
9602-
version: "18.3.0-canary-d579e7748-20240223",
9602+
version: "18.3.0-canary-16d3f7833-20240223",
96039603
rendererPackageName: "react-test-renderer"
96049604
};
96059605
var internals$jscomp$inline_1236 = {
@@ -9630,7 +9630,7 @@ var internals$jscomp$inline_1236 = {
96309630
scheduleRoot: null,
96319631
setRefreshHandler: null,
96329632
getCurrentFiber: null,
9633-
reconcilerVersion: "18.3.0-canary-d579e7748-20240223"
9633+
reconcilerVersion: "18.3.0-canary-16d3f7833-20240223"
96349634
};
96359635
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
96369636
var hook$jscomp$inline_1237 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/JSXDEVRuntime-dev.js

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<952f9cf06e97636903903803eab63151>>
10+
* @generated SignedSource<<5c2ba7284b4fa8017480bbd7751f531d>>
1111
*/
1212

1313
"use strict";
@@ -1044,14 +1044,6 @@ if (__DEV__) {
10441044
"it's defined in, or you might have mixed up default and named imports.";
10451045
}
10461046

1047-
var sourceInfo = getSourceInfoErrorAddendum(source);
1048-
1049-
if (sourceInfo) {
1050-
info += sourceInfo;
1051-
} else {
1052-
info += getDeclarationErrorAddendum();
1053-
}
1054-
10551047
var typeString;
10561048

10571049
if (type === null) {
@@ -1241,18 +1233,6 @@ if (__DEV__) {
12411233
return "";
12421234
}
12431235
}
1244-
1245-
function getSourceInfoErrorAddendum(source) {
1246-
{
1247-
if (source !== undefined) {
1248-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1249-
var lineNumber = source.lineNumber;
1250-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1251-
}
1252-
1253-
return "";
1254-
}
1255-
}
12561236
/**
12571237
* Ensure that every element either is passed in a static location, in an
12581238
* array with an explicit keys property defined, or in an object literal

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/JSXRuntime-dev.js

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<ba0e5e05b08cb97ab2681f6664aea89d>>
10+
* @generated SignedSource<<d28cb56e803fdd0613a38024515d9d50>>
1111
*/
1212

1313
"use strict";
@@ -1080,14 +1080,6 @@ if (__DEV__) {
10801080
"it's defined in, or you might have mixed up default and named imports.";
10811081
}
10821082

1083-
var sourceInfo = getSourceInfoErrorAddendum(source);
1084-
1085-
if (sourceInfo) {
1086-
info += sourceInfo;
1087-
} else {
1088-
info += getDeclarationErrorAddendum();
1089-
}
1090-
10911083
var typeString;
10921084

10931085
if (type === null) {
@@ -1277,18 +1269,6 @@ if (__DEV__) {
12771269
return "";
12781270
}
12791271
}
1280-
1281-
function getSourceInfoErrorAddendum(source) {
1282-
{
1283-
if (source !== undefined) {
1284-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1285-
var lineNumber = source.lineNumber;
1286-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1287-
}
1288-
1289-
return "";
1290-
}
1291-
}
12921272
/**
12931273
* Ensure that every element either is passed in a static location, in an
12941274
* array with an explicit keys property defined, or in an object literal

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-dev.js

Lines changed: 2 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<5829f9269f50c47e26af16e11355c71d>>
10+
* @generated SignedSource<<44c5c601c5193aa81af150ccb4208604>>
1111
*/
1212

1313
"use strict";
@@ -26,7 +26,7 @@ if (__DEV__) {
2626
}
2727
var dynamicFlags = require("ReactNativeInternalFeatureFlags");
2828

29-
var ReactVersion = "18.3.0-canary-d579e7748-20240223";
29+
var ReactVersion = "18.3.0-canary-16d3f7833-20240223";
3030

3131
// ATTENTION
3232
// When adding new symbols to this file,
@@ -1462,14 +1462,6 @@ if (__DEV__) {
14621462
"it's defined in, or you might have mixed up default and named imports.";
14631463
}
14641464

1465-
var sourceInfo = getSourceInfoErrorAddendum(source);
1466-
1467-
if (sourceInfo) {
1468-
info += sourceInfo;
1469-
} else {
1470-
info += getDeclarationErrorAddendum();
1471-
}
1472-
14731465
var typeString;
14741466

14751467
if (type === null) {
@@ -1670,14 +1662,6 @@ if (__DEV__) {
16701662
"it's defined in, or you might have mixed up default and named imports.";
16711663
}
16721664

1673-
var sourceInfo = getSourceInfoErrorAddendumForProps(config);
1674-
1675-
if (sourceInfo) {
1676-
info += sourceInfo;
1677-
} else {
1678-
info += getDeclarationErrorAddendum();
1679-
}
1680-
16811665
var typeString;
16821666

16831667
if (type === null) {
@@ -1995,26 +1979,6 @@ if (__DEV__) {
19951979
return "";
19961980
}
19971981
}
1998-
1999-
function getSourceInfoErrorAddendumForProps(elementProps) {
2000-
if (elementProps !== null && elementProps !== undefined) {
2001-
return getSourceInfoErrorAddendum(elementProps.__source);
2002-
}
2003-
2004-
return "";
2005-
}
2006-
2007-
function getSourceInfoErrorAddendum(source) {
2008-
{
2009-
if (source !== undefined) {
2010-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
2011-
var lineNumber = source.lineNumber;
2012-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
2013-
}
2014-
2015-
return "";
2016-
}
2017-
}
20181982
/**
20191983
* Ensure that every element either is passed in a static location, in an
20201984
* array with an explicit keys property defined, or in an object literal

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,4 +598,4 @@ exports.useSyncExternalStore = function (
598598
exports.useTransition = function () {
599599
return ReactCurrentDispatcher.current.useTransition();
600600
};
601-
exports.version = "18.3.0-canary-d579e7748-20240223";
601+
exports.version = "18.3.0-canary-16d3f7833-20240223";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/cjs/React-profiling.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ exports.useSyncExternalStore = function (
594594
exports.useTransition = function () {
595595
return ReactCurrentDispatcher.current.useTransition();
596596
};
597-
exports.version = "18.3.0-canary-d579e7748-20240223";
597+
exports.version = "18.3.0-canary-16d3f7833-20240223";
598598
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
599599
"function" ===
600600
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d579e7748218920331252b0528850943d5e2dd31
1+
16d3f7833d25b1ea026add83dd109601b60f138e

0 commit comments

Comments
 (0)