mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Rename serializeConsoleMap/Set to serializeDebugMap/Set (#33587)
Follow up to #33583. I forgot to rename these too.
This commit is contained in:
parent
ed077194b5
commit
6c7b1a1d98
|
|
@ -2435,7 +2435,7 @@ function serializeSet(request: Request, set: Set<ReactClientValue>): string {
|
||||||
return '$W' + id.toString(16);
|
return '$W' + id.toString(16);
|
||||||
}
|
}
|
||||||
|
|
||||||
function serializeConsoleMap(
|
function serializeDebugMap(
|
||||||
request: Request,
|
request: Request,
|
||||||
counter: {objectLimit: number},
|
counter: {objectLimit: number},
|
||||||
map: Map<ReactClientValue, ReactClientValue>,
|
map: Map<ReactClientValue, ReactClientValue>,
|
||||||
|
|
@ -2462,7 +2462,7 @@ function serializeConsoleMap(
|
||||||
return '$Q' + id.toString(16);
|
return '$Q' + id.toString(16);
|
||||||
}
|
}
|
||||||
|
|
||||||
function serializeConsoleSet(
|
function serializeDebugSet(
|
||||||
request: Request,
|
request: Request,
|
||||||
counter: {objectLimit: number},
|
counter: {objectLimit: number},
|
||||||
set: Set<ReactClientValue>,
|
set: Set<ReactClientValue>,
|
||||||
|
|
@ -3993,10 +3993,10 @@ function renderDebugModel(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value instanceof Map) {
|
if (value instanceof Map) {
|
||||||
return serializeConsoleMap(request, counter, value);
|
return serializeDebugMap(request, counter, value);
|
||||||
}
|
}
|
||||||
if (value instanceof Set) {
|
if (value instanceof Set) {
|
||||||
return serializeConsoleSet(request, counter, value);
|
return serializeDebugSet(request, counter, value);
|
||||||
}
|
}
|
||||||
// TODO: FormData is not available in old Node. Remove the typeof later.
|
// TODO: FormData is not available in old Node. Remove the typeof later.
|
||||||
if (typeof FormData === 'function' && value instanceof FormData) {
|
if (typeof FormData === 'function' && value instanceof FormData) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user