replace ad hoc line stream with readline module

This commit is contained in:
ansuz
2019-09-11 11:00:01 +02:00
parent 73854a8b6a
commit ab868237a0
2 changed files with 58 additions and 42 deletions

View File

@@ -205,6 +205,7 @@ Meta.createLineHandler = function (ref, errorHandler) {
line: JSON.stringify(line),
});
}
if (typeof(line) === 'undefined') { return; }
if (Array.isArray(line)) {
try {