function index(name) {
    if (!('encoding-indexes' in global)) {
      throw Error("Indexes missing." +
                  " Did you forget to include encoding-indexes.js first?");
    }
    return global['encoding-indexes'][name];
  }
@param {string} name Name of the index.
@return {(!Array.<number>|!Array.<Array.<number>>)}