node-avro-io icon indicating copy to clipboard operation
node-avro-io copied to clipboard

Bad decode due to hidden prototype

Open bigmonkeyboy opened this issue 9 years ago • 0 comments

Hi, the readRecord function is failing for me due to some extra hidden prototypes on my schema object - this could be easily fixed by adding just after - line 422 in io.js for (var fieldIdx in writersSchema.fields) { if (writersSchema.fields.hasOwnProperty(fieldIdx)) {

(also see JSlint guide as for why... https://jslinterrors.com/the-body-of-a-for-in-should-be-wrapped-in-an-if-statement) Thanks

bigmonkeyboy avatar Jan 31 '16 15:01 bigmonkeyboy