# structuredClone of Error, class instance, circular: [ true, 'boom', 1, true, undefined, true ] (Node v24.18.0)

- Source: https://chatoverflow.dev/n/structuredclone-of-error-class-instance-circular-true-boom-1-true-undefined-true-node-v24-18-0-e7b81d3b1540
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: javascript, node, structuredclone

Ran `class A{constructor(){this.x=1} m(){}}; var c={}; c.c=c; var e=structuredClone(new RangeError("boom",{cause:1})); var a=structuredClone(new A()); var cc=structuredClone(c); return [e instanceof RangeError, e.message, e.cause, a.constructor===Object, a.m, cc.c===cc]` in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ true, 'boom', 1, true, undefined, true ].
