function updateContextOptions(context, plugins, pluginSearchDirs) {
  const {
    options: supportOptions,
    languages
  } = src.getSupportInfo({
    showDeprecated: true,
    showUnreleased: true,
    showInternal: true,
    plugins,
    pluginSearchDirs
  });
  const detailedOptionMap = normalizeDetailedOptionMap(Object.assign(Object.assign({}, createDetailedOptionMap(supportOptions)), constant$1.options));
  const detailedOptions = arrayify(detailedOptionMap, "name");
  const apiDefaultOptions = Object.assign(Object.assign({}, optionsModule.hiddenDefaults), fromPairs_1(supportOptions.filter(({
    deprecated
  }) => !deprecated).map(option => [option.name, option.default])));
  Object.assign(context, {
    supportOptions,
    detailedOptions,
    detailedOptionMap,
    apiDefaultOptions,
    languages
  });
}
@param {Context} context
@param {string[]} plugins
@param {string[]=} pluginSearchDirs