function readBoolean(bufferReader, name) {
  const cc = bufferReader.readByte();
  if (cc === TRUE) {
    return true;
  }
  if (cc === FALSE) {
    return false;
  }
  throw Error(
    `Unexpected byte ${quote(toChar(cc))}, Syrup booleans must start with ${quote(toChar(TRUE))} or ${quote(toChar(FALSE))} at index ${bufferReader.index} of ${name}`,
  );
}
@param {BufferReader} bufferReader
@param {string} name
@returns {boolean}