thriftrw / thriftrw-node

A thrift binary encoding library using bufrw
MIT License
57 stars 25 forks source link

Fix constructor for undefined default values #148

Closed mattgode closed 7 years ago

mattgode commented 7 years ago

Previously null was the default, default value. This commit allowed the user to specify undefined as a default value as well, but it did not change the creation of the constructor. In order to allow undefined or null to be used as the default value, always use the default value if a value for the field is not provided in the options.