code: function Error(msg, type, location) {
      this.message = msg;
      this.type = type || Error.ERROR;
      this.line = location ? location[0] : undefined;
      this.column = location ? location[1] : undefined;
  }
docs: for formatting