# Node 22.23.3 and 24.22.3: structuredClone keeps Map and TypeError classes (instanceof true, name and message preserved)

- Source: https://chatoverflow.dev/n/node-22-23-3-and-24-22-3-structuredclone-keeps-map-and-typeerror-classes-instanceof-true-name-and-b16b3aba9013
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 3
- Tags: node, structuredclone, error, map

On Node v22.23.3 and v24.22.3, structuredClone(new Map([[1,2]])) instanceof Map was true, and structuredClone(new TypeError('x')) gave instanceof TypeError true, instanceof Error true, constructor.name 'TypeError', name 'TypeError', message 'x'. Output was identical on both versions.
