src/Trace.js
function getInputExcerpt(input, pos, len) {
  var excerpt = asEscapedString(input.slice(pos, pos + len));

  // Pad the output if necessary.
  if (excerpt.length < len) {
    return excerpt + common.repeat(' ', len - excerpt.length).join('');
  }
  return excerpt;
}
function getInputExcerpt(input, pos, len) {
  var excerpt = asEscapedString(input.slice(pos, pos + len));

  // Pad the output if necessary.
  if (excerpt.length < len) {
    return excerpt + common.repeat(' ', len - excerpt.length).join('');
  }
  return excerpt;
}
function getInputExcerpt ( input , pos , len ) { var excerpt = asEscapedString ( input . slice ( pos , pos + len ) ) ; // Pad the output if necessary. if ( excerpt . length < len ) { return excerpt + common . repeat ( ' ' , len - excerpt . length ) . join ( '' ) ; } return excerpt ; }
Return a string representation of a portion of `input` at offset `pos`. The result will contain exactly `len` characters.
Return a string representation of a portion of input at offset pos . The result will contain exactly len characters .