Skip to content

Get and set state do not handle 0 and "" correctly #67

@gvdongen

Description

@gvdongen

If you set the state to the number 0 or to an empty string, and then get the value, then the behavior is not correct.
First doing this:
Buffer.from(JSON.stringify(0))
and then doing this:
JSON.parse(buf.toString())
Does not return 0 and "" but null.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions