@@ -2440,7 +2440,7 @@ function serializeConsoleMap(
24402440 counter : { objectLimit : number } ,
24412441 map : Map < ReactClientValue , ReactClientValue > ,
24422442) : string {
2443- // Like serializeMap but for renderConsoleValue .
2443+ // Like serializeMap but for renderDebugModel .
24442444 const entries = Array . from ( map ) ;
24452445 // The Map itself doesn't take up any space but the outlined object does.
24462446 counter . objectLimit ++ ;
@@ -2458,7 +2458,7 @@ function serializeConsoleMap(
24582458 doNotLimit . add ( value ) ;
24592459 }
24602460 }
2461- const id = outlineConsoleValue ( request , counter , entries ) ;
2461+ const id = outlineDebugModel ( request , counter , entries ) ;
24622462 return '$Q' + id . toString ( 16 ) ;
24632463}
24642464
@@ -2467,7 +2467,7 @@ function serializeConsoleSet(
24672467 counter : { objectLimit : number } ,
24682468 set : Set < ReactClientValue > ,
24692469) : string {
2470- // Like serializeMap but for renderConsoleValue .
2470+ // Like serializeMap but for renderDebugModel .
24712471 const entries = Array . from ( set ) ;
24722472 // The Set itself doesn't take up any space but the outlined object does.
24732473 counter . objectLimit ++ ;
@@ -2479,7 +2479,7 @@ function serializeConsoleSet(
24792479 doNotLimit . add ( entry ) ;
24802480 }
24812481 }
2482- const id = outlineConsoleValue ( request , counter , entries ) ;
2482+ const id = outlineDebugModel ( request , counter , entries ) ;
24832483 return '$W ' + id . toString ( 16 ) ;
24842484}
24852485
@@ -3537,7 +3537,7 @@ function emitDebugChunk(
35373537 ) ;
35383538 }
35393539
3540- const json : string = serializeConsoleValue ( request , 500 , debugInfo ) ;
3540+ const json : string = serializeDebugModel ( request , 500 , debugInfo ) ;
35413541 const row = serializeRowHeader ( 'D' , id ) + json + '\n' ;
35423542 const processedChunk = stringToChunk ( row ) ;
35433543 request . completedRegularChunks . push ( processedChunk ) ;
@@ -3607,7 +3607,7 @@ function outlineComponentInfo(
36073607 // $FlowFixMe[cannot-write]
36083608 componentDebugInfo . props = componentInfo . props ;
36093609
3610- const id = outlineConsoleValue ( request , counter , componentDebugInfo ) ;
3610+ const id = outlineDebugModel ( request , counter , componentDebugInfo ) ;
36113611 const ref = serializeByValueID ( id ) ;
36123612 request . writtenDebugObjects . set ( componentInfo , ref ) ;
36133613 // 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(
36563656 // $FlowFixMe[cannot-write]
36573657 debugIOInfo . owner = owner ;
36583658 }
3659- const json : string = serializeConsoleValue ( request , objectLimit , debugIOInfo ) ;
3659+ const json : string = serializeDebugModel ( request , objectLimit , debugIOInfo ) ;
36603660 const row = id . toString ( 16 ) + ':J' + json + '\n' ;
36613661 const processedChunk = stringToChunk ( row ) ;
36623662 request . completedRegularChunks . push ( processedChunk ) ;
@@ -3806,7 +3806,7 @@ let debugModelRoot: mixed = null;
38063806let debugNoOutline : mixed = null ;
38073807// This is a forked version of renderModel which should never error, never suspend and is limited
38083808// in the depth it can encode.
3809- function renderConsoleValue (
3809+ function renderDebugModel (
38103810 request : Request ,
38113811 counter : { objectLimit : number } ,
38123812 parent :
@@ -3888,7 +3888,7 @@ function renderConsoleValue(
38883888 } else if ( debugNoOutline !== value ) {
38893889 // If this isn't the root object (like meta data) and we don't have an id for it, outline
38903890 // it so that we can dedupe it by reference later.
3891- const outlinedId = outlineConsoleValue ( request , counter , value ) ;
3891+ const outlinedId = outlineDebugModel ( request , counter , value ) ;
38923892 return serializeByValueID ( outlinedId ) ;
38933893 }
38943894 }
@@ -3897,7 +3897,7 @@ function renderConsoleValue(
38973897 const existingReference = writtenObjects . get ( value ) ;
38983898 if ( existingReference !== undefined ) {
38993899 // 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.
39013901 return existingReference ;
39023902 }
39033903
@@ -3959,7 +3959,7 @@ function renderConsoleValue(
39593959 switch (thenable.status) {
39603960 case 'fulfilled' : {
39613961 return serializePromiseID (
3962- outlineConsoleValue ( request , counter , thenable . value ) ,
3962+ outlineDebugModel ( request , counter , thenable . value ) ,
39633963 ) ;
39643964 }
39653965 case 'rejected' : {
@@ -4168,7 +4168,7 @@ function renderConsoleValue(
41684168 return 'unknown type ' + typeof value;
41694169}
41704170
4171- function serializeConsoleValue (
4171+ function serializeDebugModel (
41724172 request : Request ,
41734173 objectLimit : number ,
41744174 model : mixed ,
@@ -4183,7 +4183,7 @@ function serializeConsoleValue(
41834183 value: ReactClientValue,
41844184 ): ReactJSONValue {
41854185 try {
4186- return renderConsoleValue (
4186+ return renderDebugModel (
41874187 request ,
41884188 counter ,
41894189 this ,
@@ -4212,7 +4212,7 @@ function serializeConsoleValue(
42124212 }
42134213}
42144214
4215- function outlineConsoleValue (
4215+ function outlineDebugModel (
42164216 request : Request ,
42174217 counter : { objectLimit : number } ,
42184218 model: ReactClientValue,
@@ -4221,7 +4221,7 @@ function outlineConsoleValue(
42214221 // These errors should never make it into a build so we don't need to encode them in codes.json
42224222 // eslint-disable-next-line react-internal/prod-error-codes
42234223 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.' ,
42254225 ) ;
42264226 }
42274227
@@ -4238,7 +4238,7 @@ function outlineConsoleValue(
42384238 value: ReactClientValue,
42394239 ): ReactJSONValue {
42404240 try {
4241- return renderConsoleValue (
4241+ return renderDebugModel (
42424242 request ,
42434243 counter ,
42444244 this ,
@@ -4304,10 +4304,10 @@ function emitConsoleChunk(
43044304 const payload = [methodName, stackTrace, owner, env];
43054305 // $FlowFixMe[method-unbinding]
43064306 payload.push.apply(payload, args);
4307- let json = serializeConsoleValue (request, 500, payload);
4307+ let json = serializeDebugModel (request, 500, payload);
43084308 if (json[0] !== '[') {
43094309 // This looks like an error. Try a simpler object.
4310- json = serializeConsoleValue ( request , 500 , [
4310+ json = serializeDebugModel ( request , 500 , [
43114311 methodName ,
43124312 stackTrace ,
43134313 owner ,
0 commit comments