lockdown = options => {
  const hardenIntrinsics = repairIntrinsics(options);
  hardenIntrinsics();
  // Replace global Compartment with a version that is hardened and hardens
  // transitive child Compartment.
  // @ts-expect-error Incomplete global type on XS.
  globalThis.Compartment = adaptCompartmentConstructors(
    NativeStartCompartment,
    ShimStartCompartment,
    harden,
  );
}
@module Alters the XS implementation of Lockdown to be backward compatible
with SES, providing Compartment constructors in every Compartment that can
be used with either native ModuleSources or module sources pre-compiled for
the SES Compartment, depending on the __native__ Compartment constructor
option.