You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But it doesn't have the same on the generation side, so it can't round-trip objects with these properties. A distilled testcase now that I'm looking into it:
I don't know exactly what a better behavior would be - possibly sanitizing these properties in serialized output, or skipping them instead of throwing in deserialization?
The text was updated successfully, but these errors were encountered:
Testcase, run in Deno, but the same will work in Node with the packages installed and without the
npm:
prefixes:SuperJSON has a validatePath method that makes sure it isn't reaching into constructors or other dangerous properties:
https://github.com/blitz-js/superjson/blob/main/src/accessDeep.ts#L14-L24
But it doesn't have the same on the generation side, so it can't round-trip objects with these properties. A distilled testcase now that I'm looking into it:
This is triggered because this serializes to
I don't know exactly what a better behavior would be - possibly sanitizing these properties in serialized output, or skipping them instead of throwing in deserialization?
The text was updated successfully, but these errors were encountered: