function injectEventPluginOrder(
  injectedEventPluginOrder: EventPluginOrder,
): void {
  if (eventPluginOrder) {
    throw new Error(
      'EventPluginRegistry: Cannot inject event plugin ordering more than ' +
        'once. You are likely trying to load more than one copy of React.',
    );
  }

  // Clone the ordering so it cannot be dynamically mutated.
  // $FlowFixMe[method-unbinding] found when upgrading Flow
  eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  recomputePluginOrdering();
}
Injects an ordering of plugins (by plugin name). This allows the ordering
to be decoupled from injection of the actual plugins so that ordering is
always deterministic regardless of packaging, on-the-fly injection, etc.

@param {array} InjectedEventPluginOrder
@internal