lib/eof-error.js
function EOFError(message) {
  // Like http://www.ecma-international.org/ecma-262/6.0/#sec-error-message
  if (!(this instanceof EOFError)) { return new EOFError(message); }
  Error.captureStackTrace(this, EOFError);
  if (message !== undefined) {
    Object.defineProperty(this, 'message', {
      value: String(message),
      configurable: true,
      writable: true
    });
  }
}
function EOFError(message) {
  // Like http://www.ecma-international.org/ecma-262/6.0/#sec-error-message
  if (!(this instanceof EOFError)) { return new EOFError(message); }
  Error.captureStackTrace(this, EOFError);
  if (message !== undefined) {
    Object.defineProperty(this, 'message', {
      value: String(message),
      configurable: true,
      writable: true
    });
  }
}
function EOFError ( message ) { // Like http://www.ecma-international.org/ecma-262/6.0/#sec-error-message if ( ! ( this instanceof EOFError ) ) { return new EOFError ( message ) ; } Error . captureStackTrace ( this , EOFError ) ; if ( message !== undefined ) { Object . defineProperty ( this , 'message' , { value : String ( message ) , configurable : true , writable : true } ) ; } }
Constructs an EOFError.

@class Represents an error caused by reaching the end-of-file (or, more
generally, end-of-input).
@constructor
@param {string=} message Human-readable description of the error.
Constructs an EOFError .