Skip to content

Setting object in KV with null as object property crashes DPP #4

@WilfBanger

Description

@WilfBanger

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions