>
<div id=log></div>
<script>
  runStructuredCloneBatteryOfTests({
    setup() {
      const blob = new Blob([`
        onconnect = ev => {
          const port = ev.ports[0];
          port.onmessage = ev => port.postMessage(ev.data, ev.data.transfer);
        };
      `], {type: 'text/javascript'});
      this.blobURL = URL.createObjectURL(blob);
      this.worker = new SharedWorker(this.blobURL);
      this.port = this.worker.port;
    },
    structuredClone(data, transfer) {
      return new Promise(res