Circular object not detected
Closed this issue · 2 comments
Akxe commented
I have made as simple stackblitz as possible: https://stackblitz.com/edit/jsan-stringify-error?file=index.ts
This is the key point of it:
const carrier = {
id: "Carrier 1",
map: new Map()
};
const period = {
id: "Period 1",
carriers: new Set([carrier])
};
carrier.map.set(period, {});
const result = stringify([carrier], undefined, null, true);
kolodny commented
Good catch. Fixed and published to 3.1.14. Thanks!