set registry(registry) {
      /** @type {typeof ScopedElementsHost} */ (this.constructor).__registry = registry;
    }
Set the CustomElementRegistry associated to the ShadowRoot

@param {CustomElementRegistry} registry