code: function buf2str(buf) {
    var CHUNKSIZE=16384;
    if (buf.length < CHUNKSIZE) {
      return String.fromCharCode.apply(String, buf);
    }
    // special case for large strings, to avoid busting the stack.
    var result = '';
    for (var i = 0; i < buf.length; i += CHUNKSIZE) {
      result += String.fromCharCode.apply(String, buf.slice(i, i+CHUNKSIZE));
    }
    return result;
  }
docs: *
  These are utility functions that don't use any of the parser's
  internal state.