LineStream.js
function emit() {
  if (arguments.length) this.emitted.push(arguments);
  while (!this.paused && this.emitted.length && this.readable) {
    var emitArgs = this.emitted.shift();
    this.emit.apply(this, emitArgs);
    if (emitArgs[0] == 'end') {
      this.readable = false;
    }
  }
}
function emit() {
  if (arguments.length) this.emitted.push(arguments);
  while (!this.paused && this.emitted.length && this.readable) {
    var emitArgs = this.emitted.shift();
    this.emit.apply(this, emitArgs);
    if (emitArgs[0] == 'end') {
      this.readable = false;
    }
  }
}
function emit ( ) { if ( arguments . length ) this . emitted . push ( arguments ) ; while ( ! this . paused && this . emitted . length && this . readable ) { var emitArgs = this . emitted . shift ( ) ; this . emit . apply ( this , emitArgs ) ; if ( emitArgs [ 0 ] == 'end' ) { this . readable = false ; } } }
add emit events to the event queue.

(private method)
add emit events to the event queue .