check every function and method for proper error handling and add tests passing invalid data everywhere.
I propose to try to recover from most bogus inputs as much as we can and only throw if absolutely necessary.
For cases where we recover it's best to log somewhere and outside of the parser we are not in a stream so emit("error") does not work... :-(
the question is again how to log.
check every function and method for proper error handling and add tests passing invalid data everywhere. I propose to try to recover from most bogus inputs as much as we can and only throw if absolutely necessary. For cases where we recover it's best to log somewhere and outside of the parser we are not in a stream so emit("error") does not work... :-( the question is again how to log.