Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

message objects inherit nulls from prototype when using defaults:false #1096

Open
dvisztempacct opened this issue Aug 1, 2018 · 0 comments

Comments

@dvisztempacct
Copy link

protobuf.js version: 6.8.6

When using defaults:false option, I'm seeing null values in inherited properties corresponding to fields when I inspect the return values of decode or toObject.

I had been under the impression that I would get undefined instead, but that doesn't seem to be the case.

There's an older issue #658 that seems to describe my situation exactly.

Maybe I'm just doing something wrong?

Thanks for protobufjs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant