@@ -2440,7 +2440,7 @@ function serializeConsoleMap(
2440
2440
counter : { objectLimit : number } ,
2441
2441
map : Map < ReactClientValue , ReactClientValue > ,
2442
2442
) : string {
2443
- // Like serializeMap but for renderConsoleValue .
2443
+ // Like serializeMap but for renderDebugModel .
2444
2444
const entries = Array . from ( map ) ;
2445
2445
// The Map itself doesn't take up any space but the outlined object does.
2446
2446
counter . objectLimit ++ ;
@@ -2458,7 +2458,7 @@ function serializeConsoleMap(
2458
2458
doNotLimit . add ( value ) ;
2459
2459
}
2460
2460
}
2461
- const id = outlineConsoleValue ( request , counter , entries ) ;
2461
+ const id = outlineDebugModel ( request , counter , entries ) ;
2462
2462
return '$Q' + id . toString ( 16 ) ;
2463
2463
}
2464
2464
@@ -2467,7 +2467,7 @@ function serializeConsoleSet(
2467
2467
counter : { objectLimit : number } ,
2468
2468
set : Set < ReactClientValue > ,
2469
2469
) : string {
2470
- // Like serializeMap but for renderConsoleValue .
2470
+ // Like serializeMap but for renderDebugModel .
2471
2471
const entries = Array . from ( set ) ;
2472
2472
// The Set itself doesn't take up any space but the outlined object does.
2473
2473
counter . objectLimit ++ ;
@@ -2479,7 +2479,7 @@ function serializeConsoleSet(
2479
2479
doNotLimit . add ( entry ) ;
2480
2480
}
2481
2481
}
2482
- const id = outlineConsoleValue ( request , counter , entries ) ;
2482
+ const id = outlineDebugModel ( request , counter , entries ) ;
2483
2483
return '$W ' + id . toString ( 16 ) ;
2484
2484
}
2485
2485
@@ -3537,7 +3537,7 @@ function emitDebugChunk(
3537
3537
) ;
3538
3538
}
3539
3539
3540
- const json : string = serializeConsoleValue ( request , 500 , debugInfo ) ;
3540
+ const json : string = serializeDebugModel ( request , 500 , debugInfo ) ;
3541
3541
const row = serializeRowHeader ( 'D' , id ) + json + '\n' ;
3542
3542
const processedChunk = stringToChunk ( row ) ;
3543
3543
request . completedRegularChunks . push ( processedChunk ) ;
@@ -3607,7 +3607,7 @@ function outlineComponentInfo(
3607
3607
// $FlowFixMe[cannot-write]
3608
3608
componentDebugInfo . props = componentInfo . props ;
3609
3609
3610
- const id = outlineConsoleValue ( request , counter , componentDebugInfo ) ;
3610
+ const id = outlineDebugModel ( request , counter , componentDebugInfo ) ;
3611
3611
const ref = serializeByValueID ( id ) ;
3612
3612
request . writtenDebugObjects . set ( componentInfo , ref ) ;
3613
3613
// We also store this in the main dedupe set so that it can be referenced by inline React Elements.
@@ -3656,7 +3656,7 @@ function emitIOInfoChunk(
3656
3656
// $FlowFixMe[cannot-write]
3657
3657
debugIOInfo . owner = owner ;
3658
3658
}
3659
- const json : string = serializeConsoleValue ( request , objectLimit , debugIOInfo ) ;
3659
+ const json : string = serializeDebugModel ( request , objectLimit , debugIOInfo ) ;
3660
3660
const row = id . toString ( 16 ) + ':J' + json + '\n' ;
3661
3661
const processedChunk = stringToChunk ( row ) ;
3662
3662
request . completedRegularChunks . push ( processedChunk ) ;
@@ -3806,7 +3806,7 @@ let debugModelRoot: mixed = null;
3806
3806
let debugNoOutline : mixed = null ;
3807
3807
// This is a forked version of renderModel which should never error, never suspend and is limited
3808
3808
// in the depth it can encode.
3809
- function renderConsoleValue (
3809
+ function renderDebugModel (
3810
3810
request : Request ,
3811
3811
counter : { objectLimit : number } ,
3812
3812
parent :
@@ -3888,7 +3888,7 @@ function renderConsoleValue(
3888
3888
} else if ( debugNoOutline !== value ) {
3889
3889
// If this isn't the root object (like meta data) and we don't have an id for it, outline
3890
3890
// it so that we can dedupe it by reference later.
3891
- const outlinedId = outlineConsoleValue ( request , counter , value ) ;
3891
+ const outlinedId = outlineDebugModel ( request , counter , value ) ;
3892
3892
return serializeByValueID ( outlinedId ) ;
3893
3893
}
3894
3894
}
@@ -3897,7 +3897,7 @@ function renderConsoleValue(
3897
3897
const existingReference = writtenObjects . get ( value ) ;
3898
3898
if ( existingReference !== undefined ) {
3899
3899
// We've already emitted this as a real object, so we can refer to that by its existing reference.
3900
- // This might be slightly different serialization than what renderConsoleValue would've produced.
3900
+ // This might be slightly different serialization than what renderDebugModel would've produced.
3901
3901
return existingReference ;
3902
3902
}
3903
3903
@@ -3959,7 +3959,7 @@ function renderConsoleValue(
3959
3959
switch (thenable.status) {
3960
3960
case 'fulfilled' : {
3961
3961
return serializePromiseID (
3962
- outlineConsoleValue ( request , counter , thenable . value ) ,
3962
+ outlineDebugModel ( request , counter , thenable . value ) ,
3963
3963
) ;
3964
3964
}
3965
3965
case 'rejected' : {
@@ -4168,7 +4168,7 @@ function renderConsoleValue(
4168
4168
return 'unknown type ' + typeof value;
4169
4169
}
4170
4170
4171
- function serializeConsoleValue (
4171
+ function serializeDebugModel (
4172
4172
request : Request ,
4173
4173
objectLimit : number ,
4174
4174
model : mixed ,
@@ -4183,7 +4183,7 @@ function serializeConsoleValue(
4183
4183
value: ReactClientValue,
4184
4184
): ReactJSONValue {
4185
4185
try {
4186
- return renderConsoleValue (
4186
+ return renderDebugModel (
4187
4187
request ,
4188
4188
counter ,
4189
4189
this ,
@@ -4212,7 +4212,7 @@ function serializeConsoleValue(
4212
4212
}
4213
4213
}
4214
4214
4215
- function outlineConsoleValue (
4215
+ function outlineDebugModel (
4216
4216
request : Request ,
4217
4217
counter : { objectLimit : number } ,
4218
4218
model: ReactClientValue,
@@ -4221,7 +4221,7 @@ function outlineConsoleValue(
4221
4221
// These errors should never make it into a build so we don't need to encode them in codes.json
4222
4222
// eslint-disable-next-line react-internal/prod-error-codes
4223
4223
throw new Error (
4224
- 'outlineConsoleValue should never be called in production mode. This is a bug in React.' ,
4224
+ 'outlineDebugModel should never be called in production mode. This is a bug in React.' ,
4225
4225
) ;
4226
4226
}
4227
4227
@@ -4238,7 +4238,7 @@ function outlineConsoleValue(
4238
4238
value: ReactClientValue,
4239
4239
): ReactJSONValue {
4240
4240
try {
4241
- return renderConsoleValue (
4241
+ return renderDebugModel (
4242
4242
request ,
4243
4243
counter ,
4244
4244
this ,
@@ -4304,10 +4304,10 @@ function emitConsoleChunk(
4304
4304
const payload = [methodName, stackTrace, owner, env];
4305
4305
// $FlowFixMe[method-unbinding]
4306
4306
payload.push.apply(payload, args);
4307
- let json = serializeConsoleValue (request, 500, payload);
4307
+ let json = serializeDebugModel (request, 500, payload);
4308
4308
if (json[0] !== '[') {
4309
4309
// This looks like an error. Try a simpler object.
4310
- json = serializeConsoleValue ( request , 500 , [
4310
+ json = serializeDebugModel ( request , 500 , [
4311
4311
methodName ,
4312
4312
stackTrace ,
4313
4313
owner ,
0 commit comments