function readHexChar(len) {
    var n = readInt(16, len);
    if (n === null) raise(tokStart, "Bad character escape sequence");
    return /** @type {number} */(n);
  }
Used to read character escape sequences ('\x', '\u', '\U').

@param {number} len
@returns {number}