lib/parser.js
function(msg){
    var type = this.peek().type
      , val = undefined == this.peek().val
        ? ''
        : ' ' + this.peek().toString();
    if (val.trim() == type.trim()) val = '';
    throw new errors.ParseError(msg.replace('{peek}', '"' + type + val + '"'));
  }
function(msg){
    var type = this.peek().type
      , val = undefined == this.peek().val
        ? ''
        : ' ' + this.peek().toString();
    if (val.trim() == type.trim()) val = '';
    throw new errors.ParseError(msg.replace('{peek}', '"' + type + val + '"'));
  }
function ( msg ) { var type = this . peek ( ) . type , val = undefined == this . peek ( ) . val ? '' : ' ' + this . peek ( ) . toString ( ) ; if ( val . trim ( ) == type . trim ( ) ) val = '' ; throw new errors . ParseError ( msg . replace ( '{peek}' , '"' + type + val + '"' ) ) ; }
Throw an `Error` with the given `msg`.

@param {String} msg
@api private
Throw an Error with the given msg .