Skip to content

Commit 1a332a8

Browse files
committed
[DevTools] Fix index (#34187)
I used the wrong indexer and tested with one entry. DiffTrain build for [47fd2f5](47fd2f5)
1 parent c92ef90 commit 1a332a8

36 files changed

+152
-300
lines changed

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

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -156,25 +156,16 @@ __DEV__ &&
156156
componentName = this.props.ref;
157157
return void 0 !== componentName ? componentName : null;
158158
}
159-
function ReactElement(
160-
type,
161-
key,
162-
self,
163-
source,
164-
owner,
165-
props,
166-
debugStack,
167-
debugTask
168-
) {
169-
self = props.ref;
159+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
160+
var refProp = props.ref;
170161
type = {
171162
$$typeof: REACT_ELEMENT_TYPE,
172163
type: type,
173164
key: key,
174165
props: props,
175166
_owner: owner
176167
};
177-
null !== (void 0 !== self ? self : null)
168+
null !== (void 0 !== refProp ? refProp : null)
178169
? Object.defineProperty(type, "ref", {
179170
enumerable: !1,
180171
get: elementRefGetterWithDeprecationWarning
@@ -213,8 +204,6 @@ __DEV__ &&
213204
config,
214205
maybeKey,
215206
isStaticChildren,
216-
source,
217-
self,
218207
debugStack,
219208
debugTask
220209
) {
@@ -275,10 +264,8 @@ __DEV__ &&
275264
return ReactElement(
276265
type,
277266
children,
278-
self,
279-
source,
280-
getOwner(),
281267
maybeKey,
268+
getOwner(),
282269
debugStack,
283270
debugTask
284271
);
@@ -337,23 +324,14 @@ __DEV__ &&
337324
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
338325
var didWarnAboutKeySpread = {};
339326
exports.Fragment = REACT_FRAGMENT_TYPE;
340-
exports.jsxDEV = function (
341-
type,
342-
config,
343-
maybeKey,
344-
isStaticChildren,
345-
source,
346-
self
347-
) {
327+
exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) {
348328
var trackActualOwner =
349329
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
350330
return jsxDEVImpl(
351331
type,
352332
config,
353333
maybeKey,
354334
isStaticChildren,
355-
source,
356-
self,
357335
trackActualOwner
358336
? Error("react-stack-top-frame")
359337
: unknownOwnerDebugStack,

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

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -156,25 +156,16 @@ __DEV__ &&
156156
componentName = this.props.ref;
157157
return void 0 !== componentName ? componentName : null;
158158
}
159-
function ReactElement(
160-
type,
161-
key,
162-
self,
163-
source,
164-
owner,
165-
props,
166-
debugStack,
167-
debugTask
168-
) {
169-
self = props.ref;
159+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
160+
var refProp = props.ref;
170161
type = {
171162
$$typeof: REACT_ELEMENT_TYPE,
172163
type: type,
173164
key: key,
174165
props: props,
175166
_owner: owner
176167
};
177-
null !== (void 0 !== self ? self : null)
168+
null !== (void 0 !== refProp ? refProp : null)
178169
? Object.defineProperty(type, "ref", {
179170
enumerable: !1,
180171
get: elementRefGetterWithDeprecationWarning
@@ -213,8 +204,6 @@ __DEV__ &&
213204
config,
214205
maybeKey,
215206
isStaticChildren,
216-
source,
217-
self,
218207
debugStack,
219208
debugTask
220209
) {
@@ -275,10 +264,8 @@ __DEV__ &&
275264
return ReactElement(
276265
type,
277266
children,
278-
self,
279-
source,
280-
getOwner(),
281267
maybeKey,
268+
getOwner(),
282269
debugStack,
283270
debugTask
284271
);
@@ -337,23 +324,14 @@ __DEV__ &&
337324
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
338325
var didWarnAboutKeySpread = {};
339326
exports.Fragment = REACT_FRAGMENT_TYPE;
340-
exports.jsxDEV = function (
341-
type,
342-
config,
343-
maybeKey,
344-
isStaticChildren,
345-
source,
346-
self
347-
) {
327+
exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) {
348328
var trackActualOwner =
349329
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
350330
return jsxDEVImpl(
351331
type,
352332
config,
353333
maybeKey,
354334
isStaticChildren,
355-
source,
356-
self,
357335
trackActualOwner
358336
? Error("react-stack-top-frame")
359337
: unknownOwnerDebugStack,

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ac7820a99efac29dcd5a69f6d2438f6d31b7abbf
1+
47fd2f5e1487fb48c561a6f8f30c534d8f8c7747
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ac7820a99efac29dcd5a69f6d2438f6d31b7abbf
1+
47fd2f5e1487fb48c561a6f8f30c534d8f8c7747

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

Lines changed: 11 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -203,25 +203,16 @@ __DEV__ &&
203203
componentName = this.props.ref;
204204
return void 0 !== componentName ? componentName : null;
205205
}
206-
function ReactElement(
207-
type,
208-
key,
209-
self,
210-
source,
211-
owner,
212-
props,
213-
debugStack,
214-
debugTask
215-
) {
216-
self = props.ref;
206+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
207+
var refProp = props.ref;
217208
type = {
218209
$$typeof: REACT_ELEMENT_TYPE,
219210
type: type,
220211
key: key,
221212
props: props,
222213
_owner: owner
223214
};
224-
null !== (void 0 !== self ? self : null)
215+
null !== (void 0 !== refProp ? refProp : null)
225216
? Object.defineProperty(type, "ref", {
226217
enumerable: !1,
227218
get: elementRefGetterWithDeprecationWarning
@@ -260,8 +251,6 @@ __DEV__ &&
260251
config,
261252
maybeKey,
262253
isStaticChildren,
263-
source,
264-
self,
265254
debugStack,
266255
debugTask
267256
) {
@@ -322,10 +311,8 @@ __DEV__ &&
322311
return ReactElement(
323312
type,
324313
children,
325-
self,
326-
source,
327-
getOwner(),
328314
maybeKey,
315+
getOwner(),
329316
debugStack,
330317
debugTask
331318
);
@@ -334,10 +321,8 @@ __DEV__ &&
334321
newKey = ReactElement(
335322
oldElement.type,
336323
newKey,
337-
void 0,
338-
void 0,
339-
oldElement._owner,
340324
oldElement.props,
325+
oldElement._owner,
341326
oldElement._debugStack,
342327
oldElement._debugTask
343328
);
@@ -1116,10 +1101,8 @@ __DEV__ &&
11161101
props = ReactElement(
11171102
element.type,
11181103
key,
1119-
void 0,
1120-
void 0,
1121-
owner,
11221104
props,
1105+
owner,
11231106
element._debugStack,
11241107
element._debugTask
11251108
);
@@ -1192,10 +1175,8 @@ __DEV__ &&
11921175
return ReactElement(
11931176
type,
11941177
key,
1195-
void 0,
1196-
void 0,
1197-
getOwner(),
11981178
i,
1179+
getOwner(),
11991180
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
12001181
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
12011182
);
@@ -1250,55 +1231,42 @@ __DEV__ &&
12501231
return elementType;
12511232
};
12521233
exports.isValidElement = isValidElement;
1253-
exports.jsx = function (type, config, maybeKey, source, self) {
1234+
exports.jsx = function (type, config, maybeKey) {
12541235
var trackActualOwner =
12551236
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
12561237
return jsxDEVImpl(
12571238
type,
12581239
config,
12591240
maybeKey,
12601241
!1,
1261-
source,
1262-
self,
12631242
trackActualOwner
12641243
? Error("react-stack-top-frame")
12651244
: unknownOwnerDebugStack,
12661245
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
12671246
);
12681247
};
1269-
exports.jsxDEV = function (
1270-
type,
1271-
config,
1272-
maybeKey,
1273-
isStaticChildren,
1274-
source,
1275-
self
1276-
) {
1248+
exports.jsxDEV = function (type, config, maybeKey, isStaticChildren) {
12771249
var trackActualOwner =
12781250
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
12791251
return jsxDEVImpl(
12801252
type,
12811253
config,
12821254
maybeKey,
12831255
isStaticChildren,
1284-
source,
1285-
self,
12861256
trackActualOwner
12871257
? Error("react-stack-top-frame")
12881258
: unknownOwnerDebugStack,
12891259
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
12901260
);
12911261
};
1292-
exports.jsxs = function (type, config, maybeKey, source, self) {
1262+
exports.jsxs = function (type, config, maybeKey) {
12931263
var trackActualOwner =
12941264
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
12951265
return jsxDEVImpl(
12961266
type,
12971267
config,
12981268
maybeKey,
12991269
!0,
1300-
source,
1301-
self,
13021270
trackActualOwner
13031271
? Error("react-stack-top-frame")
13041272
: unknownOwnerDebugStack,
@@ -1441,7 +1409,7 @@ __DEV__ &&
14411409
exports.useTransition = function () {
14421410
return resolveDispatcher().useTransition();
14431411
};
1444-
exports.version = "19.2.0-www-classic-ac7820a9-20250811";
1412+
exports.version = "19.2.0-www-classic-47fd2f5e-20250812";
14451413
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14461414
"function" ===
14471415
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)