ame, "TypeError");
  });

  const iframe = document.createElement("iframe");
  iframe.onload = () => {
    if (iframe.contentWindow.location === "about:blank") {
      return;
    }

    iframe.contentWindow.doIt();
  };
  iframe.src = "resources/post-parent-type-error.html";
  document.body.append(iframe);
}, "Errors sent across realms should preserve their type");
</script>
