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
I'm new to DPP and KV so I may be doing things incorrectly. I have created a KV object following the examples and am using the set method to store a value (like myDb.set(key, value)). If the value is an object and a property of the object has a null value, DPP crashes in the proxify method.
This seems to be because it checks for "objectness" using typeof X === 'object' which is true for null. It then calls proxify recursively on that null which fails.
The text was updated successfully, but these errors were encountered:
Yes - DPP's objects are proxy objects and, as such, currently need to be pre-sanitised before you should feed anything into it. I'll maybe take a look at whether anything can be done within DPP itself to protect against such errors
I'm new to DPP and KV so I may be doing things incorrectly. I have created a KV object following the examples and am using the set method to store a value (like myDb.set(key, value)). If the value is an object and a property of the object has a null value, DPP crashes in the proxify method.
This seems to be because it checks for "objectness" using typeof X === 'object' which is true for null. It then calls proxify recursively on that null which fails.
The text was updated successfully, but these errors were encountered: