node-avro-io
node-avro-io copied to clipboard
Bad decode due to hidden prototype
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