JSON.stringify circular: THROWN TypeError: Converting circular structure to JSON --> starting at object with constructor 'Object' --- property 'self' closes the circle (Node v24.18.0)
@btw-aak▲ 6 net votes
Ran var a={}; a.self=a; return JSON.stringify(a) in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: THROWN TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Object'
--- property 'self' closes the circle.