Skip to content

Commit 20f2563

Browse files
committed
Use .slice() for all substring-ing (#26677)
- substr is Annex B - substring silently flips its arguments if they're in the "wrong order", which is confusing - slice is better than sliced bread (no pun intended) and also it works the same way on Arrays so there's less to remember --- > I'd be down to just lint and enforce a single form just for the potential compression savings by using a repeated string. _Originally posted by @sebmarkbage in #26663 (comment) DiffTrain build for commit 767f522.
1 parent bb5e9b6 commit 20f2563

13 files changed

Lines changed: 19 additions & 19 deletions

File tree

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
@@ -23858,7 +23858,7 @@ function createFiberRoot(
2385823858
return root;
2385923859
}
2386023860

23861-
var ReactVersion = "18.3.0-next-c826dc50d-20230419";
23861+
var ReactVersion = "18.3.0-next-767f52237-20230419";
2386223862

2386323863
// Might add PROFILE later.
2386423864

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
@@ -8599,7 +8599,7 @@ var devToolsConfig$jscomp$inline_1021 = {
85998599
throw Error("TestRenderer does not support findFiberByHostInstance()");
86008600
},
86018601
bundleType: 0,
8602-
version: "18.3.0-next-c826dc50d-20230419",
8602+
version: "18.3.0-next-767f52237-20230419",
86038603
rendererPackageName: "react-test-renderer"
86048604
};
86058605
var internals$jscomp$inline_1206 = {
@@ -8630,7 +8630,7 @@ var internals$jscomp$inline_1206 = {
86308630
scheduleRoot: null,
86318631
setRefreshHandler: null,
86328632
getCurrentFiber: null,
8633-
reconcilerVersion: "18.3.0-next-c826dc50d-20230419"
8633+
reconcilerVersion: "18.3.0-next-767f52237-20230419"
86348634
};
86358635
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
86368636
var hook$jscomp$inline_1207 = __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
@@ -9025,7 +9025,7 @@ var devToolsConfig$jscomp$inline_1063 = {
90259025
throw Error("TestRenderer does not support findFiberByHostInstance()");
90269026
},
90279027
bundleType: 0,
9028-
version: "18.3.0-next-c826dc50d-20230419",
9028+
version: "18.3.0-next-767f52237-20230419",
90299029
rendererPackageName: "react-test-renderer"
90309030
};
90319031
var internals$jscomp$inline_1247 = {
@@ -9056,7 +9056,7 @@ var internals$jscomp$inline_1247 = {
90569056
scheduleRoot: null,
90579057
setRefreshHandler: null,
90589058
getCurrentFiber: null,
9059-
reconcilerVersion: "18.3.0-next-c826dc50d-20230419"
9059+
reconcilerVersion: "18.3.0-next-767f52237-20230419"
90609060
};
90619061
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
90629062
var hook$jscomp$inline_1248 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (
2727
}
2828
"use strict";
2929

30-
var ReactVersion = "18.3.0-next-c826dc50d-20230419";
30+
var ReactVersion = "18.3.0-next-767f52237-20230419";
3131

3232
// ATTENTION
3333
// When adding new symbols to this file,

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
@@ -639,4 +639,4 @@ exports.useSyncExternalStore = function (
639639
);
640640
};
641641
exports.useTransition = useTransition;
642-
exports.version = "18.3.0-next-c826dc50d-20230419";
642+
exports.version = "18.3.0-next-767f52237-20230419";

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
@@ -642,7 +642,7 @@ exports.useSyncExternalStore = function (
642642
);
643643
};
644644
exports.useTransition = useTransition;
645-
exports.version = "18.3.0-next-c826dc50d-20230419";
645+
exports.version = "18.3.0-next-767f52237-20230419";
646646

647647
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
648648
if (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c826dc50de288758a0b783b2fd37b40a3b512fc4
1+
767f52237cf7892ad07726f21e3e8bacfc8af839

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27165,7 +27165,7 @@ function createFiberRoot(
2716527165
return root;
2716627166
}
2716727167

27168-
var ReactVersion = "18.3.0-next-c826dc50d-20230419";
27168+
var ReactVersion = "18.3.0-next-767f52237-20230419";
2716927169

2717027170
function createPortal$1(
2717127171
children,

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9468,7 +9468,7 @@ var roots = new Map(),
94689468
devToolsConfig$jscomp$inline_1045 = {
94699469
findFiberByHostInstance: getInstanceFromNode,
94709470
bundleType: 0,
9471-
version: "18.3.0-next-c826dc50d-20230419",
9471+
version: "18.3.0-next-767f52237-20230419",
94729472
rendererPackageName: "react-native-renderer",
94739473
rendererConfig: {
94749474
getInspectorDataForViewTag: function () {
@@ -9510,7 +9510,7 @@ var internals$jscomp$inline_1276 = {
95109510
scheduleRoot: null,
95119511
setRefreshHandler: null,
95129512
getCurrentFiber: null,
9513-
reconcilerVersion: "18.3.0-next-c826dc50d-20230419"
9513+
reconcilerVersion: "18.3.0-next-767f52237-20230419"
95149514
};
95159515
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
95169516
var hook$jscomp$inline_1277 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10177,7 +10177,7 @@ var roots = new Map(),
1017710177
devToolsConfig$jscomp$inline_1123 = {
1017810178
findFiberByHostInstance: getInstanceFromNode,
1017910179
bundleType: 0,
10180-
version: "18.3.0-next-c826dc50d-20230419",
10180+
version: "18.3.0-next-767f52237-20230419",
1018110181
rendererPackageName: "react-native-renderer",
1018210182
rendererConfig: {
1018310183
getInspectorDataForViewTag: function () {
@@ -10232,7 +10232,7 @@ var roots = new Map(),
1023210232
scheduleRoot: null,
1023310233
setRefreshHandler: null,
1023410234
getCurrentFiber: null,
10235-
reconcilerVersion: "18.3.0-next-c826dc50d-20230419"
10235+
reconcilerVersion: "18.3.0-next-767f52237-20230419"
1023610236
});
1023710237
exports.createPortal = function (children, containerTag) {
1023810238
return createPortal$1(

0 commit comments

Comments
 (0)