mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Fix visualize function Set case callback arguments (#11525)
This commit is contained in:
parent
2b02955fdc
commit
550a9ad2a9
|
|
@ -122,7 +122,7 @@ export function visualize(value: any, depth = 0): string {
|
|||
return `${constructor} (${value.size}) { ${mapped.join(', ')} }`;
|
||||
case 'Set':
|
||||
if (depth > 2) return `Set`;
|
||||
return `${constructor} (${value.size}) { ${[...value].map(v => visualize(v), depth + 1).join(', ')} }`;
|
||||
return `${constructor} (${value.size}) { ${[...value].map(v => visualize(v, depth + 1)).join(', ')} }`;
|
||||
}
|
||||
|
||||
if (value.toString) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user