'use strict';conststream=require('stream');classBaseStreamextendsstream.Readable{addEntry(/* entry, opts */){thrownewError('.addEntry not implemented in sub class!');}_read(){}emit(event,data){if(event==='error'){consterror=data;if(error.name==='Error'){error.name=this.constructor.name+'Error';}}super.emit(event,data);}}module.exports=BaseStream;