diff --git a/src/hooks/json-stringify.ts b/src/hooks/json-stringify.ts index 1919aec5..e91bd796 100644 --- a/src/hooks/json-stringify.ts +++ b/src/hooks/json-stringify.ts @@ -15,6 +15,7 @@ function stringify( space?: string | number ): string { if (!isPrimitive(value)) { + value = structuredClone(value); // TODO: add below to a dump-level logger // console.debug('JSON.stringify', value, replacer, space);