static set workerPort(val) {
    if (
      !(typeof Worker !== "undefined" && val instanceof Worker) &&
      val !== null
    ) {
      throw new Error("Invalid `workerPort` type.");
    }
    this.#port = val;
  }
@param {Worker | null} workerPort - Defines global port for worker process.
  Overrides the `workerSrc` option.