ianstormtaylor / superstruct

A simple and composable way to validate data in JavaScript (and TypeScript).
https://docs.superstructjs.org
MIT License
6.95k stars 224 forks source link

Add tests that check that all structs that work with non-primitive values copy their data during coercion #1259

Open arturmuller opened 1 month ago

arturmuller commented 1 month ago

This should help us catch cases where data is accidentaly copied by reference (which leads to surprising and buggy behaviour).